File Directory Php

Name                              Value  Explanation
 
UPLOAD_ERR_OK                     0      No problem
 
UPLOAD_ERR_INI_SIZE               1      File size exceeds php.ini limit set in upload_max_filesize
 
UPLOAD_ERR_FORM_SIZE              2      File size exceeds limit set in hidden element named MAX_FILE_SIZE
 
UPLOAD_ERR_PARTIAL                3      File only partially uploaded
 
UPLOAD_ERR_NO_FILE                4      File was not uploaded