Search code examples
ruby-on-railsherokuamazon-s3paperclipuploading

Rails, Heroku, Paperclip and the uploading of files to S3


I'm working on an app that will let users submit zip files that are about ~5mb in size I imagine. I will then take these files manually and work with them on my end.

I'm looking into using Paperclip as heroku suggests for this task - bypassing heroku entirely - and just uploading to Amazon S3.

However now that I'm messing with it it looks like a user model can have ONE attachment, rather than multiple. Is there a better alternative or perhaps a direct way to just upload to S3 knowing my bucket name and keys and such?

Or is there a way to configure paperclip such that a user can have many attachments? I'm a bit confused what I'm doing.


Solution

  • You can find many available tutorials to setup paperclip working with multiple attachments.