Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the upload of empty folder on drop #2164

Merged
merged 16 commits into from
Jun 10, 2022
Prev Previous commit
Next Next commit
stray comments
Tbaut committed Jun 3, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ea3e3f28e13d1cc37e6346f60db6cf777b4251d0
Original file line number Diff line number Diff line change
@@ -113,10 +113,6 @@ const UploadFileModule = ({ modalOpen, close }: IUploadFileModuleProps) => {
close()
await values.files.length && uploadFiles(bucket, values.files, currentPath)

// //create empty folders
// emptyFolders.forEach(async (folderPath) => {
// await filesApiClient.addBucketDirectory(bucket.id, { path: getPathWithFile(currentPath, folderPath) })
// })
//create empty dir
if(emptyFolders.length){
const allDirs = emptyFolders.map((folderPath) =>