started folder uploads

This commit is contained in:
subnub
2024-12-05 23:36:20 -05:00
parent 2ef5aaef23
commit 0e81da7fbc
7 changed files with 390 additions and 52 deletions
+2 -1
View File
@@ -296,6 +296,7 @@ export const useUploader = () => {
size: currentFile.size,
type: currentFile.type,
path: currentFile.webkitRelativePath,
index: i,
})
);
}
@@ -305,7 +306,7 @@ export const useUploader = () => {
for (let i = 0; i < files.length; i++) {
const currentFile = files[i];
console.log("current file", currentFile.webkitRelativePath);
data.append("file", currentFile, "test");
data.append("file", currentFile, i.toString());
}
const CancelToken = axiosNonInterceptor.CancelToken;