Question: reuse webuploader upload pictures when found error, print the $ _FILES [ "file"] [ "error"] found to be 6, Missing a temporary folder;
$ _FILES [ 'file'] [ 'error'] has the following types:
1, UPLOAD_ERR_OK
its value is 0, no error occurred, the file uploaded successfully.
2, UPLOAD_ERR_INI_SIZE
a value of 1, the uploaded file exceeds the upload_max_filesize in php.ini option to limit the value of.
3, UPLOAD_ERR_FORM_SIZE
value of 2, upload file size exceeds the value of the HTML form MAX_FILE_SIZE option specified.
4, UPLOAD_ERR_PARTIAL
a value of 3, was only partially uploaded file.
5, UPLOAD_ERR_NO_FILE
a value of 4, no files are uploaded.
6, UPLOAD_ERR_NO_TMP_DIR
its value is 6, Missing a temporary folder. PHP 4.3.10 and PHP 5.0.3 introduced.
7, UPLOAD_ERR_CANT_WRITE
its value is 7, the file writing failure. PHP 5.1.0 introduced.
solution:
1, look at PHP's php.ini is set in the temporary folder, the upload_tmp_dir php.ini option. (There are no comments, there is no provision of temporary files)
2, if you have set up a temporary file, then see the permissions have not read and write permissions
Linux: chmod -R 0777 /tmp
Windows: Set C: / temp directory permissions everyone can read and write.
3, restart apache server
sudo apachectl restart;
Well, this should be no problem!