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 money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
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)