Title: Uploading image error Missing a temporary folder.
Last modified: August 31, 2016

---

# Uploading image error Missing a temporary folder.

 *  Resolved [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/)
 * When uploading an image I am getting the following error.
 * Missing a temporary folder.
 * This is happening on ALL my sites I have created and upgraded to wordpress 4.4.1
 * I contacted my ISP and they said that everything is fine on their end and that
   they feel it’s a 4.4.1 issue causing this.
 * Is anyone else having this problem and is there a fix for it???
 * Thank you.

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

 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962521)
 * Also it appears that non of my plug ins are updating as well.
 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962633)
 * Is anyone else having this problem, it sounds from my ISP they have received 
   many calls regarding this same issue.
 * Thanks
 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962638)
 * I just installed a brand new wordpress 4.4.1 on another domain and went to upload
   an image and got the same error about missing a temporary folder
 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962655)
 * I read in another support about it being a PHP problem on the host side, they
   said to create a file to see my php info which I did and the following is set
   on my host
 * upload_tmp_dir /tmp (for local value) /tmp (for master value)
 * in wordpress I am not sure where this folder should go, my site is under WWW 
   for the root folder. I didn’t see the folder there so I created it and changed
   all the permissions to RW for everything.
 * Any other help, actually ANY Help would be appreciated! 🙂
 * [https://wordpress.org/support/topic/media-upload-error-missing-a-temporary-folder?replies=13](https://wordpress.org/support/topic/media-upload-error-missing-a-temporary-folder?replies=13)
 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962755)
 * After reading for countless hours, I got it fixed
 *  [JGriff](https://wordpress.org/support/users/jgriff/)
 * (@jgriff)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962788)
 * TomandBunny, how did you get it fixed??????
 * i’ve been pouring through old responses for over a week now and still can’t find
   a solution. Your’s is the most recent that i’ve seen.
 *  Thread Starter [TomandBunny](https://wordpress.org/support/users/tomandbunny/)
 * (@tomandbunny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962789)
 * Honestly I am not sure! I read about the /tmp and another post said something
   about a /wwwtmp I created both and gave the permissions as 777 as suggested and
   the site started to function again.
 * Either that or my ISP got enough calls and fixed it on their end??? of course
   they will neither confirm or deny, they just say they don’t support wordpress.
 * I actually found most of my stuff on Google search, not here.
 *  [JGriff](https://wordpress.org/support/users/jgriff/)
 * (@jgriff)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962791)
 * oh ok. thanks!
 *  [jabarpk](https://wordpress.org/support/users/jabarpk/)
 * (@jabarpk)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962908)
 * any online here
 *  [SteveDownshift](https://wordpress.org/support/users/stevenetrivet/)
 * (@stevenetrivet)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-6962921)
 * [@tomandbunny](https://wordpress.org/support/users/tomandbunny/) an ISP is your**
   Internet Service Provider** and should be unrelated to this problem. Please double-
   check your terminology.
 * File permissions of 777 are not recommended, and could pose a security risk for
   your site. You may want to contact your hosting company about this error message
   to resolve the problem.
 * By the sound of things, your PHP system on your website server computer does 
   not have a [upload_tmp_dir](http://php.net/manual/en/ini.core.php#ini.upload-tmp-dir)
   setting defined. This is fairly technical, and should probably be resolved with
   your hosting company tech support or server admin team. My guess is that you’ll
   discover that your host updated the web server _PHP version_ used for your website
   server, and goofed up the server configuration so that there is no default temp
   directory.
 * Feel free to let us know who your hosting company is so that anyone else with
   this issue can confirm if they have the same host.
 *  [Harshit](https://wordpress.org/support/users/harshitp123/)
 * (@harshitp123)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8282704)
 * Hello everyone…. I had the same issue where i was unable to upload images, plugins
   and even themes.
 * After my research I got this done. For those who are still facing issue even 
   after the php.in code snippet here’s a solution.
 * Phase 1:
    - Log into Hosting Cpanel of your server or use your FTP.
    - Open public_html folder.
    - Now create a file with a name php.ini.
    - Place the following code inside the file and save it: upload_tmp_dir= /home/(
      remove brackets and enter your cpanel username)/public_html/wp-content/temp/
    - Create a temp folder at the same location, i.e. /public_html/wp-content/temp.
 * Remember it is highly recommanded not to change or skip any step’s above.
 * Once this is done follow the 2nd Phase.
    - Log into Hosting CPanel
    - Locate wp-config.php file in the root of your wordpress site.
    - Add this code at the end of the file and Save it: define(‘WP_TEMP_DIR’, dirname(
      __FILE__) . ‘/wp-content/temp/’);
 * And that’s it. It must work now. For me this worked as my hosting is on Godaddy.
 *  [SteveDownshift](https://wordpress.org/support/users/stevenetrivet/)
 * (@stevenetrivet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8284264)
 * Thanks for your input [@harshitp123](https://wordpress.org/support/users/harshitp123/)
   your steps are probably correct for your hosting environment, I’m glad that worked
   for you.
 * But as I had mentioned in my previous post in this thread, the `upload_tmp_dir`
   PHP configuration may vary by hosting company, and I **would not assume** that
   your example works for everyone who may read this thread. For example, some hosts
   use Nginx instead of Apache, and the patch to a temporary directory will probably
   have a different structure than you’ve proposed here. E.g. a temp folder path
   might look more like `/tmp` or maybe like `/var/www/tmp` or something else.
 * The point is, anyone reading this thread should confer with their hosting company
   about the system PHP `upload_tmp_dir` setting for their server to get it right.
   In fact, their default configuration for PHP really _should_ have the `upload_tmp_dir`
   directory setup correctly by default, and by bringing this problem to their attention,
   they can fix it for everyone – saving lots of people your frustration and confusion.
 *  [oldmanbeefjerky](https://wordpress.org/support/users/oldmanbeefjerky/)
 * (@oldmanbeefjerky)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8611965)
 * I was able to fix this on my 000webhost site by putting a /tmp folder in the 
   same directory as my public_html, i deleted the tmp folder for some reason when
   i migrated, i put it back and everything is fine now.
 *  [anneverdillo](https://wordpress.org/support/users/anneverdillo/)
 * (@anneverdillo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8637099)
 * Hi [@oldmanbeefjerky](https://wordpress.org/support/users/oldmanbeefjerky/),
 * I am using 000webhost as well but I can’t create a new folder inside my public_html.
   I get an error of this when creating a folder.
 *  ftp_mkdir(): 21776 Kbytes used (2%) – authorized: 1024000 Kb
 * Can you help me with this?
 * Thanks,
    – Anne
 *  [oldmanbeefjerky](https://wordpress.org/support/users/oldmanbeefjerky/)
 * (@oldmanbeefjerky)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8637205)
 * have you tried using the 000webhost onlinetools? could be just that your ftp 
   client isnt doing it right, however i remade my tmp folder with filezilla

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

The topic ‘Uploading image error Missing a temporary folder.’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [missing a temporary folder](https://wordpress.org/support/topic-tag/missing-a-temporary-folder/)
 * [uploading](https://wordpress.org/support/topic-tag/uploading/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 7 participants
 * Last reply from: [oldmanbeefjerky](https://wordpress.org/support/users/oldmanbeefjerky/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/uploading-image-error-missing-a-temporary-folder/#post-8637205)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
