默认表单带文件上传时 留空,会出现upload_err_no_file 4错误代码。
php 错误代码列表// upload_err_ok value: 0// there is no error, the file uploaded with success.// upload_err_ini_size value: 1// the uploaded file exceeds the upload_max_filesize directive in php.ini.// upload_err_form_size value: 2// the uploaded file exceeds the max_file_size directive that was specified in the html form.// upload_err_partial value: 3// the uploaded file was only partially uploaded.// upload_err_no_file value: 4// no file was uploaded.// upload_err_no_tmp_dir value: 6// missing a temporary folder. introduced in php 4.3.10 and php 5.0.3.// upload_err_cant_write value: 7// failed to write file to disk. introduced in php 5.1.0.// upload_err_extension value: 8// a php extension stopped the file upload. introduced in php 5.2.0.
注意到上传错误代码为0,即表示上传成功。
(...)
read the rest of php 上传文件错误 error 代码 (178 words)
© li xi for lixiphp, 2014. |permalink |no comment |add todel.icio.us
post tags:
feed enhanced by better feed from ozh
