The files uploaded succesfully using fog to s3 on carrierwave seem to be disappearing automatically.How do I prevent this from happening. The fog public setting is set to true.
Carrier Fog Aws - Files are automatically disappearing from S3
225 Views Asked by coder At
2
There are 2 best solutions below
Related Questions in RUBY-ON-RAILS
- Rails HABTM: Select everything a that a record 'has'
- Best way to make an HABTM association via console
- dynamically create an ical / ics file from a rails model
- Ruby destroy is not working? Or objects still present?
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Select results where joined table contains records with an attribute, but without another
- Showing posts only created when boolean was true
- Ruby on rails and HAML - Print a hash with background color
- How can I monitor an endpoint's status with Ruby?
- How to create dynamic pages without form_for helper in Rails?
- Rails 4.2 jQuery loads only after refresh
- "Access Denied" - User's Permissions to S3 Bucket
- ActiveRecord, Rails 4: has_many :through with scoped conditions failure
- Rails - formatting a list of options
- Rails - Ajax do not work properly on production server
Related Questions in CARRIERWAVE
- "Access Denied" - User's Permissions to S3 Bucket
- Carrierwave file upload with different file types
- How to enable certain cover images to be replaced by an admin user in a rails app?
- How to set CarrierWave's 'stor_dir' to a server location that will persist after re-running 'cap deploy'?
- Fix spurious rspec "photo can't be blank" failures for Carrierwave
- How can I make 2 uploader to point to 1 cloudinary file when using carrierwave?
- Carrierwave giving error on console
- CarrierWave's rails image uploader's controller isn't accessible to 'static_pages#home'
- Front end upload for support staff only, not users
- Carrierwave: Saving Original Filename not working
- ArgumentError - unknown SSL method `TLSv1_2'
- Rails 4: How can I use "redirect_to" with AJAX to render a partial after uploading file(s)?
- Why does my image url from Amazon S3 have AWSaccesskey and expiration even though I made the bucket public?
- Rails Carrierwave upload not uploading
- Rails Carrierwave url is nil unless queried again
Related Questions in FOG
- ArgumentError - unknown SSL method `TLSv1_2'
- Nil not turning into null in request on Fog
- How can I speed up the load time of carrierwave / fog gems
- Rails - Upload private file to Google Cloud Storage
- Rspec Carrierwave/fog/aws
- Fog Gem - Access Denied on deleting S3 file
- S3 upload should not be view able outside the application
- Carrierwave: Move version name to end of filename, instead of front
- Carrierwave uploads to S3 using fog/aws gem result in "No such file or directory @ rb_sysopen"
- Carrierwave s3 403 (Forbidden) error
- Carrierwave + Fog + S3 remove file without going through a model
- Delayed job to check if a carrierwave_direct upload has been completed and attached to a model
- gem for Rails log rotation and upload old logs to s3 bucket
- Rails sitemap generator uploading to amazon s3 with fog and carrierwave
- How to set the Content Disposition header with Paperclip / fog for a file hosted on S3?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For some reason, Carrierwave deletes files not only when the model is deleted, but also when it's updated, even if you don't touch the mounted uploader field. There is supposed to be a config setting
remove_previously_stored_files_after_updatethat when set false, prevents this from happening, but I haven't had any luck setting it false – it still deletes my files on model update.