Skip to content

Unable to set svg Content-Type #129

Description

@samdaltonmaag

Hi,

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions