We're using Paperclip to upload files to S3 by presenting a browse dialog to the user. That's works nice & smooth. However, now I wish that some background job will do some crawling, and when it reaches a required file, upload that one as well. Obviously I can't use the browse dialog at this point.
All examples I saw for using Paperclip is about selecting the file manually from the client (by updating the view). I've failed to find how to set up the file to be uploaded by code, and since the UI component triggers some "behind the scenes" work that creates some object with additional information that I couldn't find how to use or call.
Any ideas? Thank you