-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original filename is not available #49
Comments
I believe |
I set a storage filename for the version as below, so def filename(version, {file, scope}) do
version
end |
I think that this would be great in the case that we want the preserve the original filename. S3 doesn't permit all utf-8 characters in the object key (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html). So some file names are not supported by arc_ecto, forcing us to generate a key that is different from the file name. If we want to keep the original filename, it could be done by adding the Here is the file that I get in the
And here is the file in the
|
When I save my file under a different name as the original file name, and I want to use the
content_disposition
header to serve the right file name, I can do that usings3_object_headers()
:However we have one problem. The filename is not yet available in the scope, and file also does not provide the original file name. I assume this is a bug (can we pass an up to date scope?), and otherwise how can we access the original filename?
The text was updated successfully, but these errors were encountered: