Comments (8)
someone?
from carrierwave_direct.
No, the attachment definitely is deleted from S3 under normal conditions. I know this is probably too late to matter, but can you please give us a code sample of your model file, or describe what was happening?
from carrierwave_direct.
Hey @dwilkie, I'm seeing this happen now, too. Calling uploader.file.delete
will delete just one version.
I know this is supposed to be automatic as part of carrierwave and/or fog -- it's not on our side. Any ideas why this might be happening?
from carrierwave_direct.
For now, @luccasmaso, you can add the following to your model:
around_destroy { attachment.remove! }
Where attachment
is your mounted uploader.
from carrierwave_direct.
Hi @colinyoung i already add
around_destroy { image.remove! }
but not work
My model
class ItemGallery < ActiveRecord::Base
attr_accessible :image
mount_uploader :image, ImageUploader
around_destroy { image.remove! }
end
from carrierwave_direct.
In the past this has failed for me due to a lack of Internet connection, for example developing on a plane. If that's not it, would you mind posting your other after_
and before_
filter code?
from carrierwave_direct.
Thanks a lot. I can fixed by adding
before_destroy :delete_images
private
def delete_images
self.remove_image!
end
from carrierwave_direct.
Looks to be resolved. Closing for now - will reopen if it becomes apparent that this is still ongoing.
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.