fix upload_photo api