-
Notifications
You must be signed in to change notification settings - Fork 333
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
${cleaned_filename} is not working #251
Comments
Thanks for reporting this. |
Thanks for your quick response. this is my gemfile and this is my gemfile.lock
|
Hi I am also having this problem. Any thoughts? |
Hi Any feedback on this? |
same here |
Same problem here, any updates? :/ |
Same here :( |
Ok, the latest version on Rubygems (1.0.7) doesn't have this feature. I had to use the master version on Gemfile: gem 's3_direct_upload', github: 'waynehoover/s3_direct_upload' |
I set the form like below.
<%= s3_uploader_form callback_url: upload_banner_group_url, callback_param: "group[banner_url]", class: "s3-uploader", key: "banners/{timestamp}-{unique_id}-#{SecureRandom.hex}/${cleaned_filename}", key_starts_with: "banners/", max_file_size: 5.megabytes, data: {:id => @group.id} do %>
the uploading result is like this.
I tried
key: "banners/{timestamp}-{unique_id}-#{SecureRandom.hex}/{cleaned_filename}"
without '$' the result was same.
when I upload without key, like this,
<%= s3_uploader_form callback_url: upload_banner_group_url, callback_param: "group[banner_url]", class: "s3-uploader", key_starts_with: "banners/", max_file_size: 5.megabytes, data: {:id => @group.id} do %>
the upload result is nice. it uploaded with original filename nicely.
I want to remove the special characters from filename. How can I do that?
The text was updated successfully, but these errors were encountered: