Azure Blob Deployment - Files content type

charles's Avatar


19 Apr, 2015 05:20 PM

We plan to use Azure Blob Deployment to push our static assets to our CDN. We found that it is possible to unzip an artifact using unizp: true which is awesome. However the default content type of a blob is always application/octet-stream. It whould be nice to add a flag like set_content_type: true that would set the content type based on the file extension.

If you have any ideas of a workaround for now it would be also appreciated!

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Apr, 2015 06:03 PM

    Feodor Fitsner's Avatar

    Yes, currently AppVeyor doesn't set content type of uploaded blob. The only workaround there could be your own PS script (or C# code) modifying uploaded blobs

    We can add support for set_content_type and deploy next week. MimeMapping can be used to translate extensions into MIME types.

  2. 2 Posted by charles on 19 Apr, 2015 08:32 PM

    charles's Avatar

    Cool, that would be nice to have the set_content_type flag but for now I wrote a very basic .exe that does the trick.

    Here is the Github repository containing the executable

  3. Support Staff 3 Posted by Feodor Fitsner on 20 Apr, 2015 12:41 AM

    Feodor Fitsner's Avatar

    Nice! I was sure MimeMapping is pretty outdated :)

  4. 4 Posted by Axel Heer on 21 Jun, 2016 06:55 PM

    Axel Heer's Avatar

    Any plans for set_content_type or the like? I create some svg badges as artifacts during build, but embeding them doesn't work because of application/octet-stream.

  5. Support Staff 5 Posted by Feodor Fitsner on 21 Jun, 2016 07:06 PM

    Feodor Fitsner's Avatar

    set_content_type is already supported.

  6. 6 Posted by Axel Heer on 21 Jun, 2016 07:10 PM

    Axel Heer's Avatar

    How can I use that for build artifacts? I'm trying to embed a url like

  7. 7 Posted by Axel Heer on 21 Jun, 2016 07:57 PM

    Axel Heer's Avatar

    Figured it out already. Deploying artifacts to azure now.

  8. 8 Posted by mabrahams675 on 23 Aug, 2016 11:54 PM

    mabrahams675's Avatar

    I've been using the set_content_type option which is great, however it doesn't work for some of the popular font mime types.

    Is this mime type mapping managed by AppVeyor and if so would it be possible to add the mime mappings for popular font types, specifically;

    .woff2 - font/woff2
    .otf - font/otf

    If not I'll need to look at doing it via powershell but it seems like a pain to do

  9. Support Staff 9 Posted by Feodor Fitsner on 24 Aug, 2016 06:15 PM

    Feodor Fitsner's Avatar

    we can add a mapping for .woff2, but there is already a mapping for .otf but it's mapped to application/font-sfnt (is that correct?)

  10. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac