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
{{ message }}
Repository navigation
GSC Datastore does not support "contentType" property #57
I'm noticing that when completing an upload using a GCS datastore, that there is no metadata passed to the completion event at all. metadata: {} is all I see. any idea if this is related?
As of now, upload_metadata is just injected as a key of the metadata
So it offers no way to update the contentType, which is another key, as you can tell by the screenshot
we'd need something like, and then there's maybe a way to update the contentType
metadata: {
...metadata_upload}
The only work around right now is to call setMetadata method on the google cloud storage api, when upload is done.
Activity
bhstahl commentedon Nov 17, 2016
Hey @joshbeal, what is passed through in the
Upload Metadataheader (as per the protocol) is set on the GCS Object.Will that suffice for your usage? If not, feel free to send over a PR with some code to discuss. Thanks for using tus!
edwar64896 commentedon Nov 25, 2016
I'm noticing that when completing an upload using a GCS datastore, that there is no metadata passed to the completion event at all. metadata: {} is all I see. any idea if this is related?
tkrugg commentedon Aug 18, 2018
As of now, upload_metadata is just injected as a key of the metadata
So it offers no way to update the contentType, which is another key, as you can tell by the screenshot
we'd need something like, and then there's maybe a way to update the contentType
The only work around right now is to call setMetadata method on the google cloud storage api, when upload is done.
Acconut commentedon Aug 20, 2018
@tkrugg Would you mind opening a PR for this?
GSC Datastore: Add support for contentType property
GSC Datastore: Add support for contentType property
GSC Datastore: Add support for contentType property
GSC Datastore: Add support for contentType property