ruby on rails - Using Paperclip to direct upload files to S3 -
so i've got paperclip set uploadify upload things s3. have made setup stuff gets loaded directly s3 , when it's done post webserver results...
all file name , size. supposed build own processor or before_post_process method "download" file s3 in order process it? or missing , uploadify should have provided me stream file inside after done posting s3?
how guys go direct uploads s3 , notifying paperclip backed model? have pull files server , post-processing on them or paperclip handle of that?
here couple blog posts describing how it...
http://www.railstoolkit.com/posts/uploading-files-directly-to-amazon-s3-using-fancyupload
http://www.railstoolkit.com/posts/fancyupload-amazon-s3-uploader-with-paperclip
they use fancyuploader (which uses mootools/flash) upload directly s3, bypassing heroku , dreaded 30 second request timeout together, , use delayedjob queue post-processing tasks thumbnailing , paperclip actual processing of files.
if can working carrierwave, post project on github share (in week or once time)
update:
sample project using rails 3, flash , mootools-based fancyuploader upload directly s3: https://github.com/iwasrobbed/rails3-s3-uploader-fancyuploader
sample project using rails 3, flash/silverlight/googlegears/browserplus , jquery-based plupload upload directly s3: https://github.com/iwasrobbed/rails3-s3-uploader-plupload
i add post-processing example once have time.
Comments
Post a Comment