Hi all
I have an app where users uploads documents (pdf files, office files, texts, spreadsheets, etc) and my app indexes it so users can search for it after...
I was uploading everything to a /upload folder, but now I'm using Amazon S3...
Before this, I could get the real file via `@document.file` where file is my uploader mounted, and I passed this @documet to a background worker and he gets the file and indexes it...
Now using S3 I can't get the real file...If I try like before, the app fails, saying that there's no file like '/bucket/document/id/name'
Is there a way that I can download it, save it on a tmp folder and index, or something?
By now, I'm using the tmp file that is passed to the form, but if the worker fails at index, I can't retry the worker, because the file doesn't exists anymore...
Any ideas?
If you guys need something to help clarify this question, let me know
--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To view this discussion on the web visit https://groups.google.com/d/msg/carrierwave/-/FFLcweHJff8J.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/carrierwave?hl=en.
where did this 'open' came from?
from File?
--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave+unsubscribe@googlegroups.com.
I think so, yes. Take a look at the url and make sure you can download from it in a web browser of using curl.
The 403 you see is Amazon denying to serve the file. IIRC files are not publicly downloadable by default when stored through fog.
/Jacob
Sent from my phone
--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave+unsubscribe@googlegroups.com.