🐛 Fix restore unknown format file root (#848)
This commit is contained in:
@@ -242,8 +242,12 @@ class FileUploadService {
|
|||||||
parentId: parentId,
|
parentId: parentId,
|
||||||
},
|
},
|
||||||
callback: async (filePayload, context) => {
|
callback: async (filePayload, context) => {
|
||||||
const isFileRoot = filePayload.root.includes('.');
|
|
||||||
const root = filePayload.root;
|
const root = filePayload.root;
|
||||||
|
const isUnknownFormat =
|
||||||
|
this.groupedPendingFiles[root]?.length === 1 &&
|
||||||
|
this.groupedPendingFiles[root][0].originalFile?.name === root;
|
||||||
|
const isFileRoot = isUnknownFormat || filePayload.root.includes('.');
|
||||||
|
|
||||||
const file = filePayload.file;
|
const file = filePayload.file;
|
||||||
if (file) {
|
if (file) {
|
||||||
const item = {
|
const item = {
|
||||||
|
|||||||
Reference in New Issue
Block a user