tmp_dir upload error

Sometime i faced this error:


Warning: File upload error – unable to create a temporary file in Unknown on line 0

$tmp_dir = ini_get(‘upload_tmp_dir’) ? ini_get(‘upload_tmp_dir’) : sys_get_temp_dir();
die($tmp_dir);

check tmp_dir, if this dir is not exist, create it

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: