Skip to content

Upload file to repository

Files can be uploaded to a repository through the + action menu in the file list.

Proposal

File upload should be initiated through the same + action menu.

Napkin_2_09-29-17__3.41.43_PM_copy

Browser upload selector opens immediately.

mfe-upload1

File is added to the active directory in the file tree and is opened in the blob viewer if supported. If it is a text file it should be editable.

Napkin_3_10-09-17__5.37.19_PM_copy

The active directory should be:

  • the directory of the currently open file,
  • or the root directory

Uploading a file should cause the multi-file editor to enter edit mode, if it is not already in edit mode.

When the user is ready, they should be able to commit the files to the selected branch.

Edited by James Ramsay (ex-GitLab)