s3_direct_upload
s3_direct_upload copied to clipboard
${cleaned_filename} is not working
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?
Thanks for reporting this. Which version of s3_direct_upload are you using?
Thanks for your quick response.
this is my gemfile
gem 's3_direct_upload', :git => 'git://github.com/waynehoover/s3_direct_upload'
and this is my gemfile.lock
20 remote: git://github.com/waynehoover/s3_direct_upload
21 revision: 6972033d6bb086c46461c191c24cefe418e69d68
22 specs:
23 s3_direct_upload (0.1.7)
24 coffee-rails (>= 3.1)
25 jquery-fileupload-rails (~> 0.4.1)
26 rails (>= 3.1)
27 sass-rails (>= 3.1)
Hi I am also having this problem. Any thoughts?
I think it is still not working. for {extension}, {cleaned_filename}. All got uploaded without getting replaced in javascript.

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'