added ability to upload file from within edit mode