Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How do I force correct file extension to download

Started by Karmalakas 6 years ago · 1 replies · 474 views
6 years ago

In Media config I've added CCX file
image|690x274

File is uploaded via usual mediaorder and then selected with filepicker. The URL I get is <...>.ccx, but when I click on it, browser opens to save <...>.zip

Is there a way to get to download original CCX instead of ZIP? Maybe there's something I can add to Image options?

P. S. This CCX file is actually a ZIP with different extension

6 years ago

that might be your browser, which recognizes the file is a zip, then wants to download as zip.
just like a smart OS, which looks into the first 256 bytes of the file content and then knows what it really is, regardless of extension. (linux does that, windows stupidly relies on the extension 😃 )

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 4 days ago
4 109 3 days ago
Support · by nwhitfield, 5 days ago
2 96 5 days ago
Support · by stell, 2 weeks ago
5 337 1 week ago
Support · by gravinator, 1 month ago
5 537 1 week ago
Support · by Gravver, 3 weeks ago
6 332 3 weeks ago