Skip to content

GSC Datastore does not support "contentType" property #57

Closed

Description

@joshbeal

There should be a way to set contentType on the uploaded object as such...

var stream = file.createWriteStream({
metadata: {
contentType:
}
});

Activity

  1. bhstahl commented on Nov 17, 2016

    @bhstahl
    Contributor

    Hey @joshbeal, what is passed through in the Upload Metadata header (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!

  2. edwar64896 commented on Nov 25, 2016

    @edwar64896

    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?

  3. tkrugg commented on Aug 18, 2018

    @tkrugg

    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

    screenshot at aug 18 15-21-51

    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.

  4. Acconut commented on Aug 20, 2018

    @Acconut
    Member

    @tkrugg Would you mind opening a PR for this?

  5. added 3 commits that reference this issue on Aug 23, 2018
    eb717ea
    50f9d3b
    ae8be92
  6. added a commit that references this issue on Oct 7, 2018
    871bc2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions