jrgifford/delayed_paperclip

Its waiting for response from delayed job.

Closed this issue · 1 comments

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

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.