{"id":227,"date":"2016-09-01T08:40:00","date_gmt":"2016-09-01T04:40:00","guid":{"rendered":"http:\/\/yohoho.msp360.com\/?p=227"},"modified":"2022-05-13T20:44:03","modified_gmt":"2022-05-13T16:44:03","slug":"how-to-add-custom-content-types-with-explorer","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/how-to-add-custom-content-types-with-explorer\/","title":{"rendered":"How to Add Custom Content-Types with MSP360 Explorer for Amazon S3"},"content":{"rendered":"<p><a href=\"https:\/\/www.msp360.com\/explorer\/amazon-s3.aspx\">MSP360 Explorer for Amazon S3<\/a> is a popular <a href=\"http:\/\/aws.amazon.com\/s3\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Amazon S3<\/a> file manager. It comes with a comprehensive list of Content-Type headers. However, every once in a while our customers bring to our attention the fact that we are missing a certain Content Type. If a Content-Type is missing in the list, we apply <b>application\/octet-stream <\/b>default<b> <\/b>content type. Sometimes it can cause issues such as the one recently brought up by in this blog post Deliver videos by Amazon S3\/Cloudfront to iPhone or iPod touch.<!--more--><\/p>\n<p>In essence, the customer uploaded <b>.m4v<\/b> files that should have been uploaded with <b>video\/x-m4v <\/b>to<b> <\/b>render correctly in the browsers. Apparently, <b>video\/x-m4v <\/b>content type is not included in the default list and the default <b>application\/octet-stream <\/b>content type is applied.<b> <\/b>As a result, the files could not have been downloaded on iPod and iPhone devices. To solve the problem like this you should add a custom content type to the list.<\/p>\n<h2>How to Add a Custom Content-Type<\/h2>\n<p>To solve the issue you can go to <strong>Tools &gt;&gt; Content Types<\/strong>. You can see the list of built-in content types there. Click <b>Add<\/b> to add a new content type.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30646 aligncenter\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-11-22.png\" alt=\"\" width=\"484\" height=\"397\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-11-22.png 484w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-11-22-300x246.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>Type <b>.m4v<\/b> for Extension and <b>video\/x-m4v <\/b>for Content type.<\/p>\n<p>The new header should appear in the list:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30647 aligncenter\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-12-41.png\" alt=\"\" width=\"485\" height=\"398\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-12-41.png 485w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-04-29_17-12-41-300x246.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>Click ok. Now you can upload files and the correct header will be applied automatically.<\/p>\n<h2>What If I Want to Modify a Content-Type for Existing Files<\/h2>\n<p>It is also possible and very easy to do.<\/p>\n<p>Just select the files you want to apply a new content type and click <b>Set HTTP Headers<\/b> button on the toolbar. Click <b>Add<\/b> in the pop-up dialog to add the header.<\/p>\n<p>Choose <b>Content-Type <\/b>for Http Header and any value you need from the list. In our example, it is <b>video\/ x-m4v. <\/b><\/p>\n<blockquote><p>You will still have to add this header if it has not been in the predefined list before as explained above.<b> <\/b><\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31596 aligncenter\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-58-54.png\" alt=\"\" width=\"402\" height=\"162\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-58-54.png 402w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-58-54-300x121.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/p>\n<p>Click ok and you will see the header in the list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31597 aligncenter\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-59-35.png\" alt=\"\" width=\"507\" height=\"510\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-59-35.png 507w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-59-35-150x150.png 150w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-59-35-298x300.png 298w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2009\/09\/2019-06-24_20-59-35-250x250.png 250w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/p>\n<p>Click ok once again to apply the header to the files.<\/p>\n<h2>Conclusion<\/h2>\n<p>As you can see MSP360 Explorer for Amazon S3 provides you with a lot of flexibility when it comes to managing Content-Types and other HTTP headers. Nevertheless, we are committed to continuously improving our product and we will be adding missing <b>Content Types<\/b> to the predefined list to make it easier for our customers to use the product.<\/p>\n<p><i>Note: this post applies to MSP360 Explorer 1.5.2 and later. <\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MSP360 Explorer for Amazon S3 is a popular Amazon S3 file manager. It comes with a comprehensive list of Content-Type headers. However, every once in a while our customers bring to our attention the fact that we are missing a certain Content Type. If a Content-Type is missing in the list, we apply application\/octet-stream default [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[877,898,882],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-blog-articles","category-msp360-explorer","category-msp360-news"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":1,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":54012,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/227\/revisions\/54012"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}