You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "create and then update" workflow does not work well in some cases.
E.g. I am setting obj.cache_control = Some("no-store".to_string()); obj.update().await to prevent GCS's default forced cache of one hour (which cannot be circumvented from the browser).
Two issues:
Sometimes that update request succeeds but the metadata of the object is not updated for some reason (I think this may be an error Google's end when writing the same object many times).
If I am creating/updating the object, it may have been replaced by the time the update runs.
Is it possible to add metadata to Object::create so that this happens in one single request instead of two?
This would solve the two issues above by making object-creation-with-metadata a single atomic step.
The text was updated successfully, but these errors were encountered:
broccolihighkicks
changed the title
Allow setting metadata on initial upload
Allow setting metadata atomically on initial upload
Aug 24, 2021
Hi @broccolihighkicks, sorry for the late response. This is something that can definitely be implemented. Currently, cloud_storage uses the 'Single request' upload scheme. This would require us the switch to multipart form uploads (described just below). Since reqwest supports multipart form requests out of the box, an implementation of this should be straightforward. Would you like to contribute on this?
The "create and then update" workflow does not work well in some cases.
E.g. I am setting
obj.cache_control = Some("no-store".to_string()); obj.update().await
to prevent GCS's default forced cache of one hour (which cannot be circumvented from the browser).Two issues:
Is it possible to add metadata to
Object::create
so that this happens in one single request instead of two?This would solve the two issues above by making object-creation-with-metadata a single atomic step.
The text was updated successfully, but these errors were encountered: