File Upload preview fails if the image path contains a query


Topic: File Upload preview fails if the image path contains a querystring

phnxdgtl pro premium priority asked 4 months ago

When using the file upload plugin, and passing in a full image URL as the data-mdb-default-file property, the image isn't rendered as a preview if the URL contains a querystring.

I'm generating temporary S3 URLs for my image previews, which have signed parameters contained within a querystring. Because the file upload plugin checks to see if the path ends in a valid extension (eg, '.png'), it won't recognise the URL as an image; even if it is a valid image URL, such as "http://dummy-url.com/image.png?signature=12345".


Dawid Wajszczuk staff answered 4 months ago

Hi,

Thanks for your feedback. I have added proper task. We will discuss this in team.

Keep coding,
Dawid


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: MacBook Pro
  • Browser: Chrome
  • OS: MacOS 12
  • Provided sample code: No
  • Provided link: Yes