Why does the photo upload in edit mode not complete?