Timeline for Change default file name when downloading from Media Library
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 28, 2016 at 14:42 | comment | added | Maziar Rezaei | Thanks, your solution definitely works, but the downside is that it is bypassing the checks and logic implemented in Sitecore to handle file download. For example, resuming download or multi-thread download using HTTP range headers. At first, I tried to use your code, but only inject the Content-Disposition header. It did not work since after my handler ran, Sitecore added the header again. So it made me dive deeper and find the code that actually raises that event, which is in MediaRequestHandler as suggested by @Richard. I ended up inheriting from that class to override the behavior. | |
Sep 26, 2016 at 22:56 | history | answered | jammykam | CC BY-SA 3.0 |