Folders not created with 'Upload file' #1439

Open
opened 2025-11-02 04:00:52 -06:00 by GiteaMirror · 11 comments
Owner

Originally created by @ThAchi1 on GitHub (Jan 11, 2018).

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.

Originally created by @ThAchi1 on GitHub (Jan 11, 2018). 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.
GiteaMirror added the type/featureissue/confirmedtopic/ui-interaction labels 2025-11-02 04:00:52 -06:00
Author
Owner

@lafriks commented on GitHub (Jan 11, 2018):

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

@lafriks commented on GitHub (Jan 11, 2018): 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
Author
Owner

@ThAchi1 commented on GitHub (Jan 11, 2018):

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.

@ThAchi1 commented on GitHub (Jan 11, 2018): 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.
Author
Owner

@thehowl commented on GitHub (Jan 11, 2018):

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

@thehowl commented on GitHub (Jan 11, 2018): So you want to have something like GitHub's drop-to-upload on repositories?
Author
Owner

@silverwind commented on GitHub (Jan 11, 2018):

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.

@silverwind commented on GitHub (Jan 11, 2018): Directory upload is possible on all modern desktop browsers except Safari. I've written have a [small JS library](https://github.com/silverwind/uppie) 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.
Author
Owner

@lafriks commented on GitHub (Jan 11, 2018):

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

@lafriks commented on GitHub (Jan 11, 2018): or rewrite that part to vue as this is where we are heading [vue-upload-component](https://github.com/lian-yue/vue-upload-component)
Author
Owner

@silverwind commented on GitHub (Jan 11, 2018):

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).

@silverwind commented on GitHub (Jan 11, 2018): > 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).
Author
Owner

@lafriks commented on GitHub (Jan 11, 2018):

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

@lafriks commented on GitHub (Jan 11, 2018): 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
Author
Owner

@stale[bot] commented on GitHub (Feb 9, 2019):

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.

@stale[bot] commented on GitHub (Feb 9, 2019): 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.
Author
Owner

@jackghg commented on GitHub (Aug 27, 2021):

this would be usefull, anybody still working on this ? And what is vue ?

@jackghg commented on GitHub (Aug 27, 2021): this would be usefull, anybody still working on this ? And what is vue ?
Author
Owner

@6543 commented on GitHub (Aug 29, 2021):

ref from codeberg: https://codeberg.org/Codeberg/Community/issues/506

what is vue

https://vuejs.org/

@6543 commented on GitHub (Aug 29, 2021): ref from codeberg: https://codeberg.org/Codeberg/Community/issues/506 > what is vue https://vuejs.org/
Author
Owner

@jackghg commented on GitHub (Nov 15, 2021):

why is this tagged as "question" ? this is a feature request

@jackghg commented on GitHub (Nov 15, 2021): why is this tagged as "question" ? this is a feature request
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1439