I’m using paperclip to manage attachments. This works fine for when the user uploads a file, but we have a feature where a user can select from an image already on our system in a seperate directory from paperclip.
Once they’ve selected that image from our system, how do I get paperclip to process and handle the image from there?
Paperclip has an adapter for
Fileobjects, so assuming you got the full path for the file from user input, you can create a newFileobject then pass it to the attachment attribute in your destination model and save everything normally.