Check upload error only if file is uploaded