You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
I think if we download a file from web, and there is a filename set in Content-Disposition in http response, original_filename should follow it.
My case is, I have a url like http://example.com/get?token=xxxx, if I set this string directly to attachment, all my attachments are named get, without extension, but it does have a filename in Content-Disposition. So I have to create a tmpfile manually and to set the filename, because files without extension are unreadable on Windows.
The text was updated successfully, but these errors were encountered:
Here: https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/io_adapters/uri_adapter.rb#L21
I think if we download a file from web, and there is a filename set in
Content-Disposition
in http response, original_filename should follow it.My case is, I have a url like
http://example.com/get?token=xxxx
, if I set this string directly to attachment, all my attachments are namedget
, without extension, but it does have a filename inContent-Disposition
. So I have to create a tmpfile manually and to set the filename, because files without extension are unreadable on Windows.The text was updated successfully, but these errors were encountered: