Check for UPLOAD_ERR_NO_FILE in UploadedFile

fixes #4276 
Should be `static`?