Paperclip Amazon S3 Background Upload Using Starling and Workling
Opened this issue · 4 comments
Written on 04/27/2020 00:00:04
Comment written by Alperon on 09/26/2014 01:45:19
Is this doing both the first and second uploads in the background? Or does the user need to wait for the first upload to complete and then the second upload will happen in the background?
Comment written by Aaron Van Bokhoven on 10/01/2014 22:26:47
For this tutorial, which is pretty outdated, you are correct with your second question. You need to wait for the first upload to complete, and the second one will be pushed to the queue and happen in the background.
Comment written by sebastian velandia on 11/23/2015 00:23:25
Hi, have you tried this solution in production? for example in heroku you can't upload files to the file system, so is there a workaround for heroku?
Comment written by Aaron Van Bokhoven on 12/11/2015 03:39:08
You can upload files to Heroku, but they are only temporarily stored and do not persist.
However, I'm not sure if this guide still works as I wrote it over 6 years ago. There are definitely better ways to handle this. I would look into carrierwave and carierwave_backgrounder for a more modern approach.
You could also look into directly uploading to S3: https://devcenter.heroku.co...