-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GSC Datastore does not support "contentType" property #57
Comments
Hey @joshbeal, what is passed through in the Will that suffice for your usage? If not, feel free to send over a PR with some code to discuss. Thanks for using tus! |
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 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. |
@tkrugg Would you mind opening a PR for this? |
There should be a way to set contentType on the uploaded object as such...
var stream = file.createWriteStream({
metadata: {
contentType:
}
});
The text was updated successfully, but these errors were encountered: