jrgifford / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.
http://www.jstorimer.com/ruby/2010/01/30/delayed-paperclip.html
MIT License
402 stars 155 forks source link

Its waiting for response from delayed job. #112

Closed sunil-sharma closed 9 years ago

sunil-sharma commented 10 years ago

Hi,

I am using S3 for storage, but if I uploaded a image of 2mb then it taking 6-8 sec to get response from delayed job with following logs: [paperclip] saving /assets/resources/000/001/548/original/2mb_image.jpg once it will get following response [AWS S3 200 43.881894 0 retries] put_object(:acl=>:public_read,:bucket_name=>"startbasehk",:content_length=>2093215,:content_type=>"image/jpeg",:data=>Paperclip::UploadedFileAdapter: 2mb_image.jpg,:key=>"assets/resources/000/001/550/original/2mb_image.jpg") then only it start job in background.

how to use delayed_paperclip just for background uploading of the image to s3 ?

Thanks, Sunil

ScotterC commented 9 years ago

DelayedPaperclip is only going to save you time processing the image in the background. Uploading the image to S3 is still going to be required before it starts processing.

I would look into client side direct uploads such as FilePicker or jQuery File Upload which will at least show the process to the user.