where from does paperclip get the name of original file?

Posted by Pavel K. on Stack Overflow See other posts from Stack Overflow or by Pavel K.
Published on 2010-04-13T15:54:17Z Indexed on 2010/04/13 16:13 UTC
Read the original article Hit count: 255

i started using nginx upload module (which creates upload files like /tmp/000121545) but i need paperclip to use original filename while saving files (like /public/avatars/LuckyLuke.jpg)

previously in the parameters Rails were passing just

 "avatar"=>#<File:/tmp/RackMultipart20100413-6151-t3ecq0-0> 

no original filename as well, so i am wondering where from does it come in paperclip? i tried looking through plugin code but it's currently a bit too complex for me.

© Stack Overflow or respective owner

Related posts about paperclip

Related posts about fileupload