{"id":53048,"date":"2021-03-01T18:33:33","date_gmt":"2021-03-01T10:33:33","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=53048"},"modified":"2023-04-06T19:07:37","modified_gmt":"2023-04-06T11:07:37","slug":"do-spaces-access-denied-error","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/","title":{"rendered":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded"},"content":{"rendered":"<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/go\/do\">Digital Ocean\u2019s (DO) Spaces<\/a> is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your Space buckets will be set as <strong>Private<\/strong>.<\/p>\n<p>If you are trying to access these files (be it .txt, .jpg, .png, .pdf, etc) publically via browser, you will be redirected to an error page that looks something like the following:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg\" alt=\"xml access denied\" width=\"1555\" height=\"443\"><\/figure>\n<p>We encounter the same problem while uploading files via Transmit to our Spaces bucket.<\/p>\n<p>The good news is, it can be solved quite easily with adding the Amazon S3 Access Control List (ACL) request header, <code>x-amz-acl<\/code>. This header will mark every files uploaded to the bucket as publicly readable.<\/p>\n<p>We can add this header to Transmit so it will send any files with the header. Once done, the files will appear with <strong>Permission: Public<\/strong> in the Digital Ocean dashboard.<\/p>\n<p>Here\u2019s how you can add the header:<\/p>\n<ol>\n<li>Launch <strong>Transmit<\/strong>, go to <strong>Preferences<\/strong>.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/step-01.jpg\" alt=\"step 01\" width=\"1000\" height=\"632\"><\/figure>\n<li>Click <strong>Cloud<\/strong> Tab.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/step-02.jpg\" alt=\"step 02\" width=\"1000\" height=\"658\"><\/figure>\n<li>Under the <strong>Extension<\/strong> column, select <strong>Default<\/strong>.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/step-03.jpg\" alt=\"step 03\" width=\"1000\" height=\"820\"><\/figure>\n<li>Click the <strong>+<\/strong> sign with dropdown, select <code>x-amz-acl<\/code> for Name, and <code>public-read<\/code> for Value.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/step-04.jpg\" alt=\"step 04\" width=\"1000\" height=\"915\"><\/figure>\n<li>Done!<\/li>\n<\/ol>\n<p>If you\u2019re currently connected to DO Space bucket via Transmit, you might need to disconnect and connect it again. From now on, files uploaded to your Spaces bucket via Transmit will by default be public and accessible via browser.<\/p>","protected":false},"excerpt":{"rendered":"<p>Digital Ocean\u2019s (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your Space buckets will be set as Private. If you are trying to access these files (be it .txt, .jpg, .png, .pdf, etc) publically via browser, you will be&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3400],"tags":[4578],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded - Hongkiat<\/title>\n<meta name=\"description\" content=\"Digital Ocean&#039;s (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded\" \/>\n<meta property=\"og:description\" content=\"Digital Ocean&#039;s (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-01T10:33:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T11:07:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded\",\"datePublished\":\"2021-03-01T10:33:33+00:00\",\"dateModified\":\"2023-04-06T11:07:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/\"},\"wordCount\":227,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/do-spaces-access-denied-error\\\/xml-access-denied.jpg\",\"keywords\":[\"DigitalOcean\"],\"articleSection\":[\"Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/\",\"name\":\"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/do-spaces-access-denied-error\\\/xml-access-denied.jpg\",\"datePublished\":\"2021-03-01T10:33:33+00:00\",\"dateModified\":\"2023-04-06T11:07:37+00:00\",\"description\":\"Digital Ocean's (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/do-spaces-access-denied-error\\\/xml-access-denied.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/do-spaces-access-denied-error\\\/xml-access-denied.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/do-spaces-access-denied-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded - Hongkiat","description":"Digital Ocean's (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded","og_description":"Digital Ocean's (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your","og_url":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2021-03-01T10:33:33+00:00","article_modified_time":"2023-04-06T11:07:37+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg","type":"","width":"","height":""}],"author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded","datePublished":"2021-03-01T10:33:33+00:00","dateModified":"2023-04-06T11:07:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/"},"wordCount":227,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg","keywords":["DigitalOcean"],"articleSection":["Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/","url":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/","name":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg","datePublished":"2021-03-01T10:33:33+00:00","dateModified":"2023-04-06T11:07:37+00:00","description":"Digital Ocean's (DO) Spaces is a Amazon S3 alike storage space that allows you to store and serve files. By default, permission of files uploaded to your","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/do-spaces-access-denied-error\/xml-access-denied.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/do-spaces-access-denied-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix DigitalOcean Spaces Access Denied for New Files Uploaded"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-dNC","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/53048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=53048"}],"version-history":[{"count":1,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/53048\/revisions"}],"predecessor-version":[{"id":53049,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/53048\/revisions\/53049"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=53048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=53048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=53048"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=53048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}