change detail_photo_upload condition