Uploading Files in Nested Folders

Started by Remers7 replies733 views
RemersOriginal post
#1

Hi everyone,

Is it possible to select folders instead of files and have files within a nested folder structure uploaded?

I thought I saw mention of nested folders being supported since 2020 but I can’t find mention of anything like this in the documentation.

Apologies if this has already been asked but I’ve not been able to find an answer.

Thanks,
Phil

MerlijnTransloadit team
#2

Hi, I’m not sure if you mean local files or remote files from for instance Google Drive. But both cases should be supported if you use @uppy/core with @uppy/dashboard.

Remers
#3

Thanks for the reply Merlijn.

It would de local rather than a third party service and is there a way of setting that you want folders to be selected rather than individual files and is this drag and drop only or can it be via a dialog box?

Sorry for the extra questions : )

Phil

MerlijnTransloadit team
#4

There is currently not a restriction in restrictions to only select folder. Does it matter though, if a user goes into a folder and selects 10 files instead of just dragging and dropping the folder?

Remers
#5

For my particular case it does matter and I would want to allow for a folder to be selected that could contain one or more levels of sub-folder. I wouldn’t want to allow for individual files to be chosen if I’d previously configured Uppy to appear on a page to only allow folder selection. Does this make sense?

The reason being is that I woould want all files existing within the nested structure to upload to our server and for the folder structure to be recreated remotely.

benny-adiwijaya
#7

Found out using meta relativepath and server side logic

ElChouaib
#8

Any solutions ?
i m well aware of the use of relative path.
But i want just to improve UX of my end users to be able to select a folder instead of selecting files and sub folders inside it.