change file type

This commit is contained in:
Simba
2020-09-07 23:23:38 +08:00
parent 153270fe9a
commit 254bde20b9
+1 -1
View File
@@ -301,7 +301,7 @@ export default class List extends TankComponent<IProps, IState> {
uploadDirectory = async () => { uploadDirectory = async () => {
const dirPathUuidMap: any = {}; // 存储已经创建好的文件夹map const dirPathUuidMap: any = {}; // 存储已经创建好的文件夹map
for (let i = 0; i < this.tempUploadList.length; i++) { for (let i = 0; i < this.tempUploadList.length; i++) {
const file: File = this.tempUploadList[i]; const file: any = this.tempUploadList[i];
const paths = file.webkitRelativePath.split("/"); const paths = file.webkitRelativePath.split("/");
const pPaths = paths.slice(0, paths.length - 1); const pPaths = paths.slice(0, paths.length - 1);
const pPathStr = pPaths.join("/"); const pPathStr = pPaths.join("/");