[Rails] Encode URL for a file upload
Hi,
I'm creating an file uploading application. I'm using paperclip to
upload files.
my upload path is
"http://localhost:3000/system/uploads/uploaded_files/000/000/064/original/Cell%20phone%20ringing.mp4"
when I'm clicking on this I can see the file.
But I want to encode this URL something like
http://localhost:3000/UitMvriwuSc3VLy3IyU9MKYbSqSnxaZk5qcX6BgYGEGx
and when I click on this link, it should decode the URL & I should be
able to see the actual file in browser.
Anybody can help me.
Thanks in advance.
Avantec
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home