take photo when upload error codes