GeezerVison is showing github.com — Unable to set svg Content-Type · Issue #129 · googleapis/google-cloud-node
Unable to set svg Content-Type #129Labels 🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DescriptionHi,
SVGs that I upload to my bucket are being served as text/plain. I suspect that the mime type detection has failed, so I'm trying to set it manually. Here's an example metadata object I use during upload:
metadata: {
'Content-Type': 'image/svg+xml'
}
There doesn't seem to be any documentation on how to set the content type, so any help is appreciated.
Cheers Activitystephenplusplus commented on Aug 22, 2014 Just to confirm we're looking at the same thing, what version of gcloud-node are you running? silvolu commented on Aug 22, 2014 @samdaltonmaag there is an example in the storage regression test, the key should be contentType. You can find a complete description of Cloud Storage objects here. stephenplusplus commented on Aug 22, 2014 Small thing: it's actually contentType, not ContentType.
The bucket write functionality has changed since 0.3.0, so keep that in mind when looking at the repo's tests & docs.
@silvolu Can we put out a 0.4.0 before the weekend? samdaltonmaag commented on Aug 22, 2014 Ah yes, it's working with that property name. I'm using 0.3.0.
Appreciate the help. silvolu commented on Aug 22, 2014 adamreisnz commented on Jun 8, 2016 stephenplusplus commented on Jun 8, 2016 We do show setting metadata in an example. Doesn't say much that you didn't see it, though! Could you contribute a PR with what you would have found helpful? adamreisnz commented on Jun 8, 2016 If you can send me the link to the page where the meta data is shown in an example, then yes I could add a link to that page in the documentation. stephenplusplus commented on Jun 8, 2016 It's in the example for createWriteStream under "Uploading a File with Metadata" adamreisnz commented on Jun 8, 2016 Ah, there it is. Yes, a link in the table at the metadata property to that example would be great. I'd create a PR for this, but not sure what repository/files I should be looking at.
MetadataMetadata🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DevelopmentNo branches or pull requestsIssue actions
|