I'm using Paperclip with Rails 4 to add attached video files to one of my models. I am able to name of the saved file after its new id
like this:
has_attached_file :file, :url=>"/tmp/video_uploads/:id.:extension", :path=>":rails_root/tmp/video_uploads/:id.:extension"
This causes them to get saved to the right place, with the right name + original extension. However, when I look in the database, the file_file_name
field for the new record is still the original file name (EX: scooby-dooby-doo.MOV). How do I fix this?