Can't "upload" file to new repository through web interface.
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
On new, empty repositories, the only option available (other than templates) in the web interface is "New file" which requires you to enter the contents of the file. This makes the first upload need to be text or base64 and not binary.
WORKAROUND: It's possible to create a file and then delete it, which makes the menu appear.
I thought it might be something to do with no branches being created, but that doesn't make sense since "New file" assumes creation of a "master" branch anyway, I don't see why "Upload file" couldn't do that also.
Steps to reproduce
- In the Gitlab web interface:
- Click "New Project", do NOT tick the "Initialise repository with a README"
- This takes you to the newly-created repository page. See that the only options are:
- New file
- Add README
- Add CHANGELOG
- Add CONTRIBUTING and no other options for adding files anywhere in the menus, etc.
- Click on "New file" This page requires that the file to be created has contents which is able to be copied and pasted.
What is the current bug behavior?
There is no "upload file" option until the first file is created.
What is the expected correct behavior?
The "Upload file" option should be an option on the page of the empty repository.
Relevant logs and/or screenshots
Empty repository page:
New file page (NB: no ability to upload):
Repository page after adding a file ("Upload file" option now appears):
Repository page after deleting all files ("Upload file" option still there):



