Setting filename in Content-Disposition for raw files.
I have uploaded a raw binary file as private. I can generate a signed private download url.
I can set attachment: truthy to allow the Content-Disposition header to exist.
I am not able to set the filename of the header.
Notes:
this is a raw binary so we wont be able to use fl_attachement, and I am unable to modify the cloudinary key programatically with this download.
-
Official comment
You can use the following syntax: http://res.cloudinary.com/demo/raw/upload/fl_attachment:wonderful/sample_spreadsheet.xls
However, note that it will create another copy of that file on your account, so pay attention to storage if this is a common flow.
-
If you want to set the file name you might want to try our SEO naming feature. Please note that `
/raw/upload` should be replaced by `/files`. and `/image/private`should be replaced by `/private_images`.You can read more about it here:
https://cloudinary.com/blog/how_to_dynamically_create_seo_friendly_urls_for_your_site_s_images
0 -
Sorry my question is focus on the SDK and integration. We are aware of the availability of these features, but they do not pertain to the usage we have described.
My one and only goal is to upload a CSV
and provide a download url to that uploaded csv with a different filename than the cloudinary key.
Thank you.
0
Post is closed for comments.
Comments
3 comments