Is it possible to download the original uploaded file (from the media area)?

Good morning, is it possible to download the original uploaded version of a file from the admin media area?

If I view an image in the media area for example, I can see that the file size is 700kb. If I now click on the “Download”-button above the file, I only get a 100kb file. Seems to me as if I can only download an already optimized version of the file.

Can you provide some insights in how the files are handled when uploaded?

Thanks and best regards
Kevin

1 Like

@kevin,

Hmm, the download SHOULD give you the original asset. Could you please send us a URL to the asset in question (inside your DatoCMS project), either posting it here or emailing support@datocms.com?


Alternatively, is it by chance a SVG? If so, you can add ?svg-sanitize=false to its URL, like https://www.datocms-assets.com/119171/1716576379-svg-sanitization-demo.svg?svg-sanitize=false. (See this thread for more details about SVGs being sanitized).

Actually, sorry! I just noticed something… if you have automatic asset optimizations enabled in your project, it looks like this will affect the downloads too :frowning: I think this is a bug, and I’ll report it for you. Sorry about that!

In the meantime, please try adding this to the image URL to bypass any automatic optimizations: auto=null. You can right-click the “download” link and add that param manually, ending up with something like https://www.datocms-assets.com/119170/1692314327-a-man-in-a-black-shirt-is-posi.jpg?dl=a-man-in-a-black-shirt-is-posi.jpg&auto=null

Does that help at all?

Hey @roger, thanks for the quick response!

Seems like it’s fixed already? If I download an asset now, I get it in the full file size. Thanks for the quick fix! :clap:

Just confirmed it. They fixed it real quick :slight_smile:

Thanks again for the report!