Azure Blob Deployment - Files content type
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!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 19 Apr, 2015 06:03 PM
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 Posted by charles on 19 Apr, 2015 08:32 PM
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
https://github.com/couellet/azurestorage-contenttype-updater
Support Staff 3 Posted by Feodor Fitsner on 20 Apr, 2015 12:41 AM
Nice! I was sure MimeMapping is pretty outdated :)
4 Posted by Axel Heer on 21 Jun, 2016 06:55 PM
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 ofapplication/octet-stream
.Support Staff 5 Posted by Feodor Fitsner on 21 Jun, 2016 07:06 PM
set_content_type
is already supported.6 Posted by Axel Heer on 21 Jun, 2016 07:10 PM
How can I use that for build artifacts? I'm trying to embed a url like https://ci.appveyor.com/api/projects/AxelHeer/nein-linq/artifacts/T...
7 Posted by Axel Heer on 21 Jun, 2016 07:57 PM
Figured it out already. Deploying artifacts to azure now.
8 Posted by mabrahams675 on 23 Aug, 2016 11:54 PM
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
Support Staff 9 Posted by Feodor Fitsner on 24 Aug, 2016 06:15 PM
we can add a mapping for
.woff2
, but there is already a mapping for.otf
but it's mapped toapplication/font-sfnt
(is that correct?)Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.