-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
old files are not deleted when a new file is uploaded #125
Comments
Does v0.7.0 exhibit the same behavior? What version of carrierwave are you tied to as well? |
I am using carrierwave 0.10.0. I forgot to mention that I am using mongoid 4.0.0.beta1 (which is why I have to use the master branch of carrierwave-mongoid gem) So i suppose that is related to some change in mongoid |
Just for clarity, the master branch of carrierwave-mongoid shouldn't be necessary for mongoid 4.0.0. A combination of carrierwave-mongoid v0.7.0 and mongoid-grid_fs v1.9.2 should do this trick. Nonetheless, for the issue reported here, a pull-request with a failing test case would really help. |
i could not get a working failing test yet, mostly because i wanted to use my uploader config which uses rmagik, but the tests are not made to work with that config. However my uploader config is:
also i mount that uploader in an embedded document:
|
Interesting. Do you think you could try I'm okay with adding a development dependency on rmagick to catch an extra scenario, especially if there's a problem with how carrierwave-mongoid exhibits itself in that scenario. Curious though, what was the deciding factor to go with RMagick? Carrierwave documentation advises against this and recommends MiniMagick instead. |
Related to #159? |
Closing this in favor of #159, because there is an example of a potential failing test case there to start a PR against. |
i'm using the master branch version of this gem and when i upload an image and upload a second one later, then the old image file remains in the upload directory and is not deleted
The text was updated successfully, but these errors were encountered: