Gitea: Folders not created with 'Upload file'

Created on 11 Jan 2018  路  8Comments  路  Source: go-gitea/gitea

Gitea version (or commit ref): 1.3.2
Git version: 2.11.0
Operating system: debian 9
Database (use [x]):
    PostgreSQL
    [ x] MySQL
    MSSQL
    SQLite
Can you reproduce the bug at https://try.gitea.io:
    [x] Yes
    No
    Not relevant
Log gist:

Description

I create a new repository and add files with 'Upload file'. But if I add folders with subfolders only files are added. Files with the same name are overwritten.
Example: folder1 includes text1 and folder2. Folder2 includes also a text1 file. I drag folder1 into the field 'Drop files or click to upload'. No folders are shown but both text1 files. After commit only the first text file is uploaded.
I can create the subfolders manually, but I have many projects with dozens of folders and subfolders.

kinquestion revieweconfirmed

Most helpful comment

Directory upload is possible on all modern desktop browsers except Safari.

I've written have a small JS library for it that supports both drag & drop and buttons. With the way browser implement the file picker dialogs, you will need a second button for directory upload in the UI.

All 8 comments

You can not upload folders through web file upload ui, only single file per commit. For many file upload use git client on your pc

At the moment I am the leader of a team. I myself have no problems using tools or command line. But for most team members 'git' is not more than 3 characters. So for now we are using git clients on the desktops (sparkleshare) for commit and gitweb for review.
Nevertheless I am still in hope for a web based solution for all. And gitea is so close. The only thing I am missing is the possibility to drag a folder from desktop into the browser, type a short description, click 'commit' and we are done, without installing and updating extra clients on all stations.

So you want to have something like GitHub's drop-to-upload on repositories?

Directory upload is possible on all modern desktop browsers except Safari.

I've written have a small JS library for it that supports both drag & drop and buttons. With the way browser implement the file picker dialogs, you will need a second button for directory upload in the UI.

or rewrite that part to vue as this is where we are heading vue-upload-component

or rewrite that part to vue as this is where we are heading vue-upload-component

Yeah, or that. Only drawback I see in that library is that it doesn't support the Directory API in Edge (mine does).

It could be also any other lib but if rewriting it should be something Vue if we have started doing it already to not create mess with multiple frameworks etc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings