biigle / user-storage

:m: BIIGLE module to offer file upload and storage for users
GNU General Public License v3.0
0 stars 0 forks source link

Show existing directories in new storage request view #13

Open dlangenk opened 2 years ago

dlangenk commented 2 years ago

If you already created a directory during upload it seems impossible to add a new file to it at a later time.

mzur commented 2 years ago

It should be possible to add files to the same directory in another storage request. Or did you mean something different?

dlangenk commented 2 years ago

No I think this is the same thing I meant. But if I go to https://biigle.de/storage-requests/create I do not see any directories I previously created and I can only add new directories.

mzur commented 2 years ago

But if I go to https://biigle.de/storage-requests/create I do not see any directories I previously created and I can only add new directories.

That's right. But you can create a new directory with the same name than the one of a previous storage request. Once the request is approved, the files will be available in the same directory.

dlangenk commented 2 years ago

Is it possible to load the current file system structure? That would simplify things and not be that prone to typos. But good that it works.

mzur commented 2 years ago

IMO this would be confusing, as the displayed directories do not (have to) belong to the new storage request. What about suggestions for existing directory names that are displayed as a typeahead in the input field for the new directory name?

dlangenk commented 2 years ago

Would be okayish but if you don't know that you can create already existing folders there is no benefit (the real world experience tells you that this should not be possible). What about graying existing directories out or something similiar.

mzur commented 2 years ago

That could work. We can leave this issue open and discuss the final implementation based on a first mockup.