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
https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/
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
https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-467371
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.