How do you allow the user to select a directory (that includes multiple
files and sub-directories) and then upload that to a server while
keeping the existing directory structure?
I found webkitdirectory but MDN doesn't recommend using it.
Andrew Poulos
How do you allow the user to select a directory (that includes multiple
files and sub-directories) and then upload that to a server while
keeping the existing directory structure?
Andrew Poulos wrote:
How do you allow the user to select a directory (that includes multiple
files and sub-directories) and then upload that to a server while
keeping the existing directory structure?
Accept only (compressed) archive files:
<https://en.wikipedia.org/wiki/List_of_archive_formats>
Every modern file manager includes a way now to create such an archive file.
On 1/07/2021 8:55 pm, Thomas 'PointedEars' Lahn wrote:
Andrew Poulos wrote:
How do you allow the user to select a directory (that includes multiple
files and sub-directories) and then upload that to a server while
keeping the existing directory structure?
Accept only (compressed) archive files:
<https://en.wikipedia.org/wiki/List_of_archive_formats>
Every modern file manager includes a way now to create such an archive
file.
So you're saying that I should instruct the user to archive the
directory they want uploaded and then (in the web page) select the
archive?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 469 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:24:06 |
Calls: | 9,449 |
Calls today: | 6 |
Files: | 13,596 |
Messages: | 6,111,763 |
Posted today: | 1 |