xwikisas / application-filemanager

XWiki application to manage a hierarchy of folders and files
GNU Lesser General Public License v2.1
0 stars 4 forks source link

FileManager does not upload empty folder after selecting it in file dialog window #97

Open petrenkonikita112263 opened 7 months ago

petrenkonikita112263 commented 7 months ago

Why do I consider this as a bug? I'm a fan firstly create a local folder structure on my machine and then have same folder structure in XWiki FileManager instead of manually creating each folder and subfolder in a table. And might be situations when at least several folders will be empty. At the time, I can achieve it by drag & drop operation, but not via file dialog window.

Prerequisites:

Step to reproduce:

  1. Navigate into FileManager.WebHome page
  2. Click "New File" button
  3. Select "Enable folder selection"
  4. Click "Browse..." button
  5. Find desire empty folder for uploading process in dialog window
  6. Select it, press "Upload" in alert window in browser Are you sure you want to upload all files from “Project Arhive”? Only do this if you trust the site. (the message may differ depending on the browser used)
  7. Refresh FileManager table

Actual result: Table of FileManager is empty - no folder was uploaded.

Expected result: Folder was uploaded

As I mentioned at start, if I drop folder by draging it into upload area, it'll be successfully uploaded.