{"id":1040,"date":"2026-03-30T10:33:41","date_gmt":"2026-03-30T10:33:41","guid":{"rendered":"https:\/\/www.jolt.co.uk\/help\/wordpress-media-uploads-fail-after-a-site-is-moved-or-cloned\/"},"modified":"2026-03-30T10:34:02","modified_gmt":"2026-03-30T10:34:02","slug":"wordpress-media-uploads-fail-after-a-site-is-moved-or-cloned","status":"publish","type":"post","link":"https:\/\/www.jolt.co.uk\/help\/wordpress-media-uploads-fail-after-a-site-is-moved-or-cloned\/","title":{"rendered":"WordPress media uploads fail after a site is moved or cloned"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Description<\/h2>\n\n\n\n<p>After a WordPress site is moved into a different hosting account or moved in some way, media uploads may stop working if WordPress is still using a custom upload path that points to an old location.<\/p>\n\n\n\n<p>This typically affects uploads in the Media Library and any feature that tries to save files into the WordPress uploads directory (e.g. plugin &amp; theme updates).<\/p>\n\n\n\n<p>You may see an error similar to: <strong>\u201cUnable to create directory uploads\/YYYY\/MM. Is its parent directory writable by the server?\u201d<\/strong> when uploading an image or other media file.<\/p>\n\n\n\n<p>Although this message can suggest a permissions problem, the most likely cause is an incorrect upload directory set in WordPress&#8217; <strong>Media Settings<\/strong>. The path still referenced the previous hosting account, so WordPress was trying to save uploads to a location that no longer matched the site\u2019s current account.<\/p>\n\n\n\n<p>This can happen after a migration or clone (e.g. creating a staging site), especially where the \u201cStore uploads in this folder\u201d setting contains an absolute server path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the WordPress admin area.<\/li>\n\n\n\n<li>Go to <strong>Settings<\/strong> and then <strong>Media<\/strong>.<\/li>\n\n\n\n<li>Check the \u201cStore uploads in this folder\u201d setting.<\/li>\n\n\n\n<li>If it contains a custom server path from a previous hosting account, remove the custom value.<\/li>\n\n\n\n<li>Save the settings so WordPress reverts to the default uploads location.<\/li>\n\n\n\n<li>Try uploading the file again through the Media Library.<\/li>\n<\/ol>\n\n\n\n<p>WordPress will then use its default uploads directory under <code>wp-content\/uploads<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description After a WordPress site is moved into a different hosting account or moved in some way, media uploads may stop working if WordPress is still using a custom upload path that points to an old location. This typically affects uploads in the Media Library and any feature that tries&hellip;<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1040","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/comments?post=1040"}],"version-history":[{"count":2,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1040\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1040\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/media?parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/categories?post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/tags?post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}