-
Notifications
You must be signed in to change notification settings - Fork 73
Description
The bucket that I want to upload the file to has a retention policy, ie. files in it cannot be deleted.
After the file is copied to the target folder, the module attempts to delete the tmp folder that was created - which returns a 403 Object 'xxxx/uploads/tmp/1666619955-603810510513191-0001-1813/xxxxxx.jpg' is subject to bucket's retention policy and cannot be deleted, overwritten or archived until 2027-10-24T13:01:49.373695-07:00
Is there something we can do to avoid using the bucket for the tmp directory - such as copy the file directly to the target folder?
(I noticed in the store method there is a flag delete_tmp_file_after_storage
that presumably could be used as a workaround to prevent attempting to delete tmp file, but that isn't ideal as we would then be storing doubles for each file ie double the storage cost etc)
Thanks
Gems:
- carrierwave 2.2.2
- carrierwave-google-storage-1.0.0