{"id":1712,"date":"2024-10-28T18:37:34","date_gmt":"2024-10-28T13:07:34","guid":{"rendered":"https:\/\/wpjobopenings.com\/?p=1712"},"modified":"2024-10-28T18:37:34","modified_gmt":"2024-10-28T13:07:34","slug":"file-upload-issues","status":"publish","type":"post","link":"https:\/\/hirezoot.com\/blog\/file-upload-issues\/","title":{"rendered":"File Upload Issues in WordPress \u2013 Cause and Solution"},"content":{"rendered":"\n<p>Uploading a file to your WordPress website may sound straightforward, but it can present several challenges. In the worst-case scenario, even as an administrator, you might find yourself unable to upload or move a file to a new location.<\/p>\n\n\n\n<p>We&#8217;ve noticed that many of you have faced this issue and decided to publish a detailed article on it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Causes File Upload Issues?<\/h2>\n\n\n\n<p>The main culprit behind this issue is misconfigured WordPress file permissions in the <code>wp-content\/uploads<\/code> directory. File permissions determine who has access to files and folders on the server and what they can do.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/default-file-permissions-1024x719.jpg\" alt=\"file permissions in WordPress\" class=\"wp-image-1713\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/default-file-permissions-1024x719.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/default-file-permissions-300x211.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/default-file-permissions-768x540.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/default-file-permissions.jpg 1446w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The three main file permissions include read, write, and execute. There are three main users- User (admin), Group (other members with various user roles on the site), and World (everyone else on the web). As you have guessed by now, not all should have the same privileges.<\/p>\n\n\n\n<p>Only the site admins should be able to make changes to all core files and folders. All other users should be restricted on the files and folders they can access and what they can do to the ones they have access to. If you provide non-site-admins access to everything, malicious actors can access the files and make changes that will compromise your website\u2019s security.<\/p>\n\n\n\n<p>The recommended file permissions are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>755 is preferred for directories<\/li>\n\n\n\n<li>644 for files<\/li>\n\n\n\n<li>640 for wp-config.php<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Configure WordPress File Permissions to Resolve File Upload Issues<\/h2>\n\n\n\n<p>There are mainly two ways to configure, and they are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Through cPanel<\/li>\n\n\n\n<li>With the help of an FTP client<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">From cPanel<\/h3>\n\n\n\n<p>Access your cPanel from your web host and navigate to Files&gt;File Manager.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"617\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/cPanel-file-manager-1024x617.jpg\" alt=\"cPanel file manager\" class=\"wp-image-1714\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/cPanel-file-manager-1024x617.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/cPanel-file-manager-300x181.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/cPanel-file-manager-768x463.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/cPanel-file-manager.jpg 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>From there, access your root directory, which is public_hmtl.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"642\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder-1024x642.jpg\" alt=\"public_html directory\" class=\"wp-image-1715\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder-1024x642.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder-300x188.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder-768x481.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder-1536x962.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/public.html-folder.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This will show all of your files and folders. To resolve the file upload issue, navigate to the wp-content\/uploads directory, right-click, and select \u201cChange Permissions.\u201d&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder-1024x574.jpg\" alt=\"wp-content folder\" class=\"wp-image-1716\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder-1024x574.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder-300x168.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder-768x430.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder-1536x861.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/wp-content-folder.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>On the next screen, set the permission to 755. Once you have configured it, click on \u201cChange Permissions.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"622\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-uploads.jpg\" alt=\"file permissions for file upload\" class=\"wp-image-1726\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-uploads.jpg 1006w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-uploads-300x185.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-uploads-768x475.jpg 768w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/figure>\n\n\n\n<p>Now, also make sure that the wp-content\/uploads\/awsm-job-openings\/ also has the same permission.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"657\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions-1024x657.jpg\" alt=\"changing the file permissions\" class=\"wp-image-1719\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions-1024x657.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions-300x192.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions-768x493.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions-1536x985.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/changing-file-permissions.jpg 1718w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If not, then change the permission to 755 and save. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"671\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings-1024x671.jpg\" alt=\"recommended file permissions \" class=\"wp-image-1718\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings-1024x671.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings-300x197.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings-768x504.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings-1536x1007.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/file-permissions-job-openings.jpg 1586w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once done, you can upload files without issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">With the use of an FTP client<\/h2>\n\n\n\n<p>With your FTP credentials, connect to your server to access your files and folders. Then go to the wp-content\/uploads directory and right-click to set the permission as 755.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"534\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-1024x534.jpg\" alt=\"FTP file permission option\" class=\"wp-image-1720\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-1024x534.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-300x156.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-768x400.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-1536x801.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>On the pop-up window that appears, use the tick box to define the permissions for each user. Also, select \u201cApply to directories only\u201d to prevent the permissions of the different files in the subfolders from changing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings-1024x532.jpg\" alt=\"updated file permissions\" class=\"wp-image-1721\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings-1024x532.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings-300x156.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings-768x399.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings-1536x798.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-file-permissions-settings.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you&#8217;ve done this, click on \u201cOK\u201d to save the changes. Once this is done, you should verify that the permissions in wp-content\/uploads\/awsm-job-openings\/are also set to 755.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"530\" src=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions-1024x530.jpg\" alt=\"saving the updated file permissions\" class=\"wp-image-1722\" srcset=\"https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions-1024x530.jpg 1024w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions-300x155.jpg 300w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions-768x398.jpg 768w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions-1536x795.jpg 1536w, https:\/\/hirezoot.com\/blog\/wp-content\/uploads\/2024\/08\/ftp-job-openings-file-permissions.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Wrapping Up<\/strong><br>By following these steps and assigning the right file permissions, you can upload files without any issues. If you are facing any other issues, please let us know in the comments section below and we will get back to you. You can also <a href=\"https:\/\/wpjobopenings.com\/support\/\">connect with our support team<\/a> for solutions to other issues.<\/p>\n\n\n\n<div class=\"pt-img-main\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Uploading a file to your WordPress website may sound straightforward, but it can present several challenges. In the worst-case scenario, even as an administrator, you might find yourself unable to upload or move a file to a new location. We&#8217;ve noticed that many of you have faced this issue and decided to publish a detailed [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":1790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/posts\/1712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/comments?post=1712"}],"version-history":[{"count":0,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/posts\/1712\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/media\/1790"}],"wp:attachment":[{"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/media?parent=1712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/categories?post=1712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirezoot.com\/blog\/wp-json\/wp\/v2\/tags?post=1712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}