photo upload error logging