tag:help.appveyor.com,2012-11-13:/discussions/suggestions/648-azure-blob-deployment-files-content-typeAppVeyor: Discussion 2018-08-25T02:08:06Ztag:help.appveyor.com,2012-11-13:Comment/366187282015-04-19T18:03:24Z2015-04-19T18:03:24ZAzure Blob Deployment - Files content type<div><p>Yes, currently AppVeyor doesn't set content type of uploaded
blob. The only workaround there could be your own PS script (or C#
code) <a href="http://stackoverflow.com/questions/10040403/set-content-type-of-media-files-stored-on-blob">
modifying uploaded blobs</a></p>
<p>We can add support for <code>set_content_type</code> and deploy
next week. <a href="http://referencesource.microsoft.com/#System.Web/MimeMapping.cs">MimeMapping</a>
can be used to translate extensions into MIME types.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/366187282015-04-19T20:32:26Z2015-04-19T20:32:26ZAzure Blob Deployment - Files content type<div><p>Cool, that would be nice to have the
<code>set_content_type</code> flag but for now I wrote a very basic
.exe that does the trick.</p>
<p>Here is the Github repository containing the executable</p>
<p><a href="https://github.com/couellet/azurestorage-contenttype-updater">https://github.com/couellet/azurestorage-contenttype-updater</a></p></div>charlestag:help.appveyor.com,2012-11-13:Comment/366187282015-04-20T00:41:13Z2015-04-20T00:41:13ZAzure Blob Deployment - Files content type<div><p>Nice! I was sure MimeMapping is <a href="https://github.com/couellet/azurestorage-contenttype-updater/blob/master/src/AzureStorageContentTypeUpdater/Program.cs#L20-L28">
pretty outdated</a> :)</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/366187282016-06-21T18:55:56Z2016-06-21T18:55:57ZAzure Blob Deployment - Files content type<div><p>Any plans for <code>set_content_type</code> or the like? I
create some svg badges as artifacts during build, but embeding them
doesn't work because of <code>application/octet-stream</code>.</p></div>Axel Heertag:help.appveyor.com,2012-11-13:Comment/366187282016-06-21T19:06:48Z2016-06-21T19:06:48ZAzure Blob Deployment - Files content type<div><p><code>set_content_type</code> is already supported.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/366187282016-06-21T19:10:23Z2016-06-21T19:10:25ZAzure Blob Deployment - Files content type<div><p>How can I use that for build artifacts? I'm trying to embed a
url like <a href="https://ci.appveyor.com/api/projects/AxelHeer/nein-linq/artifacts/TestResults/report/badge_linecoverage.svg?branch=master">
https://ci.appveyor.com/api/projects/AxelHeer/nein-linq/artifacts/T...</a></p></div>Axel Heertag:help.appveyor.com,2012-11-13:Comment/366187282016-06-21T19:57:00Z2016-06-21T19:57:02ZAzure Blob Deployment - Files content type<div><p>Figured it out already. Deploying artifacts to azure now.</p></div>Axel Heertag:help.appveyor.com,2012-11-13:Comment/366187282016-08-23T23:54:01Z2016-08-23T23:54:02ZAzure Blob Deployment - Files content type<div><p>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.</p>
<p>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;</p>
<p>.woff2 - font/woff2 .otf - font/otf</p>
<p>If not I'll need to look at doing it via powershell but it seems
like a pain to do</p></div>mabrahams675tag:help.appveyor.com,2012-11-13:Comment/366187282016-08-24T18:15:52Z2016-08-24T18:15:52ZAzure Blob Deployment - Files content type<div><p>we can add a mapping for <code>.woff2</code>, but there is
already a mapping for <code>.otf</code> but it's mapped to
<code>application/font-sfnt</code> (is that correct?)</p></div>Feodor Fitsner