Comments (7)
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.
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.
@wprater and @Foohey pull requests are very welcome. Read the README for details
from carrierwave_direct.
@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.
there is no more people using recreate_versions! ?
from carrierwave_direct.
Im not using it for this current application, but when I do, I'll take a look at the failures.
from carrierwave_direct.
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)
- One Form Action HOT 2
- Asyn upload?
- Unable to use AWS4-HMAC-SHA256 HOT 4
- does not work as expected with AWS - SignatureDoesNotMatch HOT 1
- Bypass/Disable carrierwave_direct
- It doesn't seem like the latest changes are in 2.0.0 HOT 1
- How do I combine carrierwave direct with active admin HOT 2
- FilenameFormatValidator fails for every new object HOT 6
- Need to create an upload programmatically HOT 3
- POSTing to S3: InvalidPolicyDocument HOT 9
- carrierwave_direct not working with rails 6 undefined method 'attr_accessible'
- Can I still upload a file from code in Rails? HOT 1
- Readme validation example are incorrect HOT 1
- Support for CarrierWave 2.2+ HOT 1
- How to Properly Configure Test Environment? HOT 2
- ActiveModel::UnknownAttributeError (unknown attribute 'key') HOT 1
- Unable to download and process image after successful direct upload to S3 HOT 1
- Limit filetypes to upload
- React integration
- Is it possible to style the button?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carrierwave_direct.