Jump to content

UPLOAD_ERR_NO_TMP_DIR


Recommended Posts

hi,

 

i have written a php script for uploading files into linux server. but when i try to run that script i get "UPLOAD_ERR_NO_TMP_DIR ". i even tried to changing upload_tmp_dir directive in php.ini and giving it a path to one of my created folders but it seems nothing is working. can anyone help?

 

Link to comment
Share on other sites

it is not set . it is using the system's default tmp directory. i have even tried by setting it but, nothing is working.

 

try setting it to /tmp (if linux) or if windows try creating a folder in c:\ called tmp, and make sure that the "everyone" user has full read/write access to it.

 

Also put a file in your document root which contains the contents of <?=phpinfo()?>, and load it in your browser, and make sure that your php.ini file is showing (it should be in the first panel), if it's not showing, it's not loading a php.ini file.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.