Read more

CarrierWave: When your uploader generates filenames dynamically, use model.save! instead of uploader.recreate_versions!

Dominik Schöler
December 16, 2016Software engineer at makandra GmbH

If your Carrierwave uploader dynamically generates the filename (e.g. by incorporating a user's name), you must call model.save! after recreating versions.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

uploader.recreate_versions! does not update the model with the stored filename.

Posted by Dominik Schöler to makandra dev (2016-12-16 13:03)