{"id":6548,"date":"2015-07-20T13:37:49","date_gmt":"2015-07-20T09:37:49","guid":{"rendered":"http:\/\/www.msp360.com\/blog\/?p=6548"},"modified":"2021-12-28T21:45:30","modified_gmt":"2021-12-28T17:45:30","slug":"set-up-default-headers-to-your-uploads-with-drive","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/set-up-default-headers-to-your-uploads-with-drive\/","title":{"rendered":"Make Default Headers for Your Uploads with CloudBerry Drive"},"content":{"rendered":"<p><em>This article refers to MSP360 Drive 2.0 and later.<\/em><\/p>\n<p>With the new <a href=\"https:\/\/www.msp360.com\/drive\/amazon-s3\/\" rel=\"noopener noreferrer\">MSP360 Drive<\/a>\u00a0release, we are adding the feature that allows you to configure the predefined set of HTTP headers for every upload.<!--more--><\/p>\n<p>At the MSP360 Drive Options tab, select Upload Rules and\u00a0click Add.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8920\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/first.on_.png\" alt=\"first.on\" width=\"422\" height=\"571\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/first.on_.png 418w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/first.on_-222x300.png 222w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<p>In\u00a0the Add Rule dialog, click on the Specify HTTP Headers link.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8917\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/Add.Rules_.png\" alt=\"Add.Rules\" width=\"421\" height=\"578\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/Add.Rules_.png 439w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/Add.Rules_-218x300.png 218w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/p>\n<p>Then click Add to launch the\u00a0Add Http Header dialog\u00a0where you can specify any HTTP header by selecting the available options from the \"Http Header\" and \"Value\" drop-down lists.\u00a0For example, you may want to specify the Cache-Control header and set it to store cache for\u00a0180 days.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6589\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/add_http_header.png\" alt=\"add_http_header\" width=\"573\" height=\"349\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/add_http_header.png 624w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/add_http_header-300x183.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/p>\n<p id=\"last\">You can specify multiple HTTP headers by using the Add button again.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6591\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/21.png\" alt=\"2\" width=\"430\" height=\"348\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/21.png 471w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/05\/21-300x243.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/> Once you set up the headers, click OK.<\/p>\n<div id=\"slidebox\"><a class=\"close\">\u00a0<\/a><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-015aca63-e776-436f-9ef1-337ab4cf6692\" data-portal=\"5442029\" data-id=\"015aca63-e776-436f-9ef1-337ab4cf6692\"><span class=\"hs-cta-node hs-cta-015aca63-e776-436f-9ef1-337ab4cf6692\" id=\"hs-cta-015aca63-e776-436f-9ef1-337ab4cf6692\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/015aca63-e776-436f-9ef1-337ab4cf6692\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-015aca63-e776-436f-9ef1-337ab4cf6692\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/015aca63-e776-436f-9ef1-337ab4cf6692.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<p>This\u00a0will direct you back to the Add Rule dialog where\u00a0you can choose the\u00a0options where to apply the rule and to what file types it will work.\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8918\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/editing.rules_.png\" alt=\"editing.rules\" width=\"431\" height=\"592\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/editing.rules_.png 439w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/editing.rules_-218x300.png 218w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/p>\n<p>Click Apply\u00a0and restart MSP360 Drive service for the new rules to finally take effect.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8919\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/last.on_.png\" alt=\"last.on\" width=\"431\" height=\"581\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/last.on_.png 419w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2015\/07\/last.on_-222x300.png 222w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/p>\n<p>Note: You can enable\/disable an existing rule by selecting a check-box next to the rule.<\/p>\n<p>With the newer version of MSP360 Drive, you can automate the setting of HTTP headers to the files, that is especially useful for managing website files.<\/p>\n<p>As always we would be happy to hear your feedback and you are welcome to post a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article refers to MSP360 Drive 2.0 and later. With the new MSP360 Drive\u00a0release, we are adding the feature that allows you to configure the predefined set of HTTP headers for every upload.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[877,897,882],"tags":[],"class_list":["post-6548","post","type-post","status-publish","format-standard","hentry","category-blog-articles","category-msp360-drive","category-msp360-news"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/6548","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=6548"}],"version-history":[{"count":2,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/6548\/revisions"}],"predecessor-version":[{"id":52668,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/6548\/revisions\/52668"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=6548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=6548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=6548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}