GithubHelp home page GithubHelp logo

Comments (7)

m4tm4t avatar m4tm4t commented on August 30, 2024

A workaround is to use the remote url. But the original is deleted and saved in a new UUID

In my case, i have overwrite url method with updated_at in order to get new versions (including croping) with cloudflare. So it's better to have new UUID instead of url hack

but recreate_versions! should work

from carrierwave_direct.

wprater avatar wprater commented on August 30, 2024

I'm having the same issue, needed to recreate_versions! if we need to make changes to our uploader versions. Any hope for a fix?

from carrierwave_direct.

dwilkie avatar dwilkie commented on August 30, 2024

@wprater and @Foohey pull requests are very welcome. Read the README for details

from carrierwave_direct.

m4tm4t avatar m4tm4t commented on August 30, 2024

@dwilkie I tried to reproduce fail test in carrierwave_direct but without success. Can you explain how call recreate_versions! with mocks ? (and wherein ?)

from carrierwave_direct.

m4tm4t avatar m4tm4t commented on August 30, 2024

there is no more people using recreate_versions! ?

from carrierwave_direct.

wprater avatar wprater commented on August 30, 2024

Im not using it for this current application, but when I do, I'll take a look at the failures.

from carrierwave_direct.

ajglover avatar ajglover commented on August 30, 2024

I came across this issue today, you need set the .key value, ex:

irb(main):002:0> model.image.key = "original-name.jpg"
irb(main):003:0> model.image.recreate_versions!
=> [:store_versions!]
irb(main):004:0> lp.image.versions
=> {:main=>https://prototype.s3.amazonaws.com/uploads/l_photo/6/original-name_main.jpg, :thumb=>https://prototype.s3.amazonaws.com/uploads/l_photo/6/original-name_thumb.jpg}

Without this I was also getting the 'can't convert nil into String' error.

from carrierwave_direct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.