Title: Uploads folder is not writable
Last modified: April 26, 2022

---

# Uploads folder is not writable

 *  Resolved [margmacd](https://wordpress.org/support/users/margmacd/)
 * (@margmacd)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/)
 * Hello
 * I would be grateful to receive advice on the best approach to addressing by the
   following warning, which appears specifically under the plugin header ‘File Manager’:
 * > Your uploads folder is not writable. Please make wp-content/uploads folder 
   > writable to create trash folder.
 * Many thanks
    -  This topic was modified 4 years, 1 month ago by [margmacd](https://wordpress.org/support/users/margmacd/).
    -  This topic was modified 4 years, 1 month ago by [margmacd](https://wordpress.org/support/users/margmacd/).
    -  This topic was modified 4 years, 1 month ago by [margmacd](https://wordpress.org/support/users/margmacd/).
    -  This topic was modified 4 years, 1 month ago by [margmacd](https://wordpress.org/support/users/margmacd/).
    -  This topic was modified 4 years, 1 month ago by [margmacd](https://wordpress.org/support/users/margmacd/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [file manager support](https://wordpress.org/support/users/filemanagersupport/)
 * (@filemanagersupport)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15592542)
 * Hey [@margmacd](https://wordpress.org/support/users/margmacd/),
 * Apologies for the inconvenience.
 * We urge you to please send us a support ticket with the screenshots of the issue
   you are facing by using this link [https://filemanagerpro.io/contact](https://filemanagerpro.io/contact)
   by attaching the screenshot.
 * We will be able to better assist you with your issue by setting up a call.
 * Rgds,
 *  Thread Starter [margmacd](https://wordpress.org/support/users/margmacd/)
 * (@margmacd)
 * [4 years ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15643201)
 * Hello
 * Thank you for your message. Unfortunately, there are two problems with the form
   that you have directed me to. Firstly, it does not provide an option to include
   a screenshot as an attachment. Secondly, it requests an order number, which I
   do not have.
 *  [tempuserkdkz](https://wordpress.org/support/users/tempuserkdkz/)
 * (@tempuserkdkz)
 * [4 years ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15663993)
 * _SVN revision: 2649873 (edited from: 2669537, but this was a tabbing issue fix)_
   added some code, where there’s a typo, which could be the cause of the issue:
 *     ```
       74	            // security fix
       75	            $myfile = $backup_dirname."/.htaccess";
       76	            if(!file_exists($myfile)){
       77	                $myfileHandle = @fopen($myfile, 'w+');
       78	                if(!is_bool($myfileHandle)){
       79	                    $txt = '<FilesMatch "\.(zip|gz)$">';
       80	                    $txt .= "\nOrder allow,deny\n";
       81	                    $txt .= "Deny from all\n";
       82	                    $txt .= "</Files>";
       83	                    @fwrite($myfileHandle, $txt);
       84	                    @fclose($myfileHandle);
       85	                }
       86	            }
       ```
   
 * Line 82 has the fault. It should be closing FilesMatch instead.
 * To fix it for the future, this line should be updated.
    Haven’t checked more 
   about the code, so can’t really say anything about it in general. Just stumbled
   upon this one and thought it was worth reporting, if no one else had.
 * If trying to fix it yourself, you should probably check the .htaccess file in
   the folder as well.
    -  This reply was modified 4 years ago by [tempuserkdkz](https://wordpress.org/support/users/tempuserkdkz/).
 *  Thread Starter [margmacd](https://wordpress.org/support/users/margmacd/)
 * (@margmacd)
 * [4 years ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15669515)
 * [@tempuserkdkz](https://wordpress.org/support/users/tempuserkdkz/) Are you offering
   a suggestion specifically about how to address the error message I have reported?
   I am sorry that I am having difficulty implementing what you are suggesting, 
   as I do not follow you. For example, your reference to line 82 appears to apply
   to line 84. Also, you have not indicated what file you have taken the code you
   have shared from. Additionally, I do not know what you have in mind in your comment
   about checking the .htaccess file. Perhaps you are assuming that I should know
   automatically. That is not the case, however. I am not a software developer.
 *  Thread Starter [margmacd](https://wordpress.org/support/users/margmacd/)
 * (@margmacd)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15726025)
 * Hello
 * This is an update to clarify that it turns out that the issue I had reported 
   in this thread originates with the plugin Library File Manager ([https://en-gb.wordpress.org/plugins/file-manager/](https://en-gb.wordpress.org/plugins/file-manager/)),
   which I have now uninstalled. Thank you to Rajeev from WP File Manager Plugin
   Support for his assistance in identifying the source of the issue.
    -  This reply was modified 3 years, 12 months ago by [margmacd](https://wordpress.org/support/users/margmacd/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Uploads folder is not writable’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-manager/assets/icon-128x128.png?rev=2491299)
 * [File Manager](https://wordpress.org/plugins/wp-file-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-manager/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [margmacd](https://wordpress.org/support/users/margmacd/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/uploads-folder-is-not-writable/#post-15726025)
 * Status: resolved