Hi,
I’m writing a script to import several data in my application. I use
ActionController::TestUploadedFile (from attachment_fu setup with an
Amazon S3 account) to upload image.
Actually, I have to give the path of the image file in my filesystem
to the method TestUploadedFile but I would like to take the file from
an Amazon S3 account.
The way I can do that is :
- Download the file from Amazon S3
- Save it on my filesystem
- Add it to my app with TestUploadedFile
- Remove the file in my filesystem
Is anybody knows a better way to do it (without using my filesystem) ?
Thanks for your help
Adrien