I have a Rails application where people can use an in browser sound editor to create wav files and upload them to the server.
I use Paperclip for handling the sound file upload.
I would like to be able to convert the wav file to an mp3, but keep both files.
I have read about Paperclip processors, but I’m not sure how to use them to get both files instead of just converting to mp3 only.
Ok, this probably isn’t optimal but it works pretty well. I ended up adding another attachment to my
Soundclass for the mp3, and added abefore_validationfilter to hook into it. In addition, since I had some existing wav attachments, I created areconvert_to_mp3method to handle the migrating of the existing records.