add validation of php upload error
Merge pull request #30 from eru/validatePhpError

add validation of php upload error