Title: uploading media error
Last modified: November 19, 2019

---

# uploading media error

 *  Resolved [itone123](https://wordpress.org/support/users/itone123/)
 * (@itone123)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/)
 * Im getting an error when I try to upload any media(pictures or files etc.). Its
   saying missing temporary folder.
 * I’ve tried
    1)changing file permissions, 2)editing wp-config with this code and
   adding temp folder define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
   3)upping wp php mem to 128M 4. disabling all plugins
 * Any help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fuploading-media-error-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/#post-12152153)
 * Backup file and database [https://wordpress.org/support/article/wordpress-backups/](https://wordpress.org/support/article/wordpress-backups/)
   
   Download your WordPress version (default language en) [https://wordpress.org/download/releases/](https://wordpress.org/download/releases/)
   extract the zip file in a folder on your PC. Remove the wordpress folder, copy(
   not move) the wp-content / uploads or blog.dir folder to the folder you extracted.
   Copy your wp-config.php to the folder you extracted, copy your temp folder to
   the folder you extracted. copy your themes folder to the folder you extracted.
   copy your plugins folder to the folder you extracted. now create a zip file. 
   Probably your hosting allows you to install compressed archives and unzip them
   in your destination folder. Currently I believe you have problems with file ownership
   and / or permissions. If you add them via ftp the owner is the ftp user … set
   all directories to 775 and file 664 .. if you still have problems indicate the
   error .. contact your hosting to know if the php files must be owned ftp or created
   by php .. (in the second case it is possible to create them with php). Only if
   you have full back-up.
    -  This reply was modified 6 years, 5 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
      Reason: Edit
 *  Thread Starter [itone123](https://wordpress.org/support/users/itone123/)
 * (@itone123)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/#post-12155644)
 * so the goal in doing so is to manually reinstall the WordPress version in order
   to fix file permissions?
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/#post-12155749)
 * otherwise you have to check if from the wordpress installation folder and all
   subsequent folders have the same property … in an ftp client it translates into
   the registered always the same number for the owner.
    If all the folders and 
   files have the same number you need larger permissions or you have to change 
   the owner to all the folders or files if php wants to be the owner .. Surely 
   your hosting company knows how php works and who should be the owner … Ask them
   for support is not a WordPress problem.
 * in the case of reinstallation, reference is made to what is necessary to complete
   backup of the files and databases. Then having deleted each folder, files on 
   your server, otherwise not work with true permissions.
 *  Thread Starter [itone123](https://wordpress.org/support/users/itone123/)
 * (@itone123)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/#post-12156298)
 * Apparently changing all the file permissions in all folders and then changing
   them back to what they were originally fixed my problem. I’m kind of wondering
   if someone was able to gain access to the website and change the file permissions.
   This all happened after I installed and app and came back the next day.

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

The topic ‘uploading media error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [itone123](https://wordpress.org/support/users/itone123/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/uploading-media-error-4/#post-12156298)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
