File Query

Hello, I’d like to know how I can get a direct download link to a file. For example, if I upload a JPG file and visit the URL, I can view the file but it won’t automatically download. Is this possible? Thanks in advance.

If you are using the “a” tag, you can add the download attribute to download the image. If you are visiting the image directly by its URL (typing the URL into the address bar) it is impossible to auto-download it.

If you are linking to the image and want to download it, use this code.

<a href=”/images/image.png” download>Download the image!</a>
4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.