forgejo_installation_process/mod_upload
2025-01-28 20:25:14 +01:00
..
routers/web Upload files to "mod_upload/routers/web/repo" 2025-01-28 20:07:35 +01:00
services Upload files to "mod_upload/services/forms" 2025-01-28 20:06:46 +01:00
web_src/js/features Upload files to "mod_upload/web_src/js/features" 2025-01-28 20:08:00 +01:00
README.md Add mod_upload/README.md 2025-01-28 20:25:14 +01:00

Adds the ability for the drag and drop file upload to handle subdirectories. You drag and drop and it doesn't kill your sub-folder substructure. Nothing more, nothing less.

Be aware that the frontend AND backend required changes. i.e. be aware of your browser cache when testing. I uses an incognito window.

Manual tests

  • Open a repo
  • optionally go to a sub-directory
  • Select File upload
  • Drag and drop a folder with files and sub-folders like
test_git/
├── 1
│ └── 2
│ ├── test2.txt
│ └── test.txt
└── test.txt
  • optionally select an additional directory for "create directory"
  • Commit changed
  • Check if the files are now in the repo according their full paths and file names, taking into account the optional "create directory" parameter