fix: added dataFormat into file data (#12807)

This commit is contained in:
Bhavin K 2022-04-21 16:09:24 +05:30 committed by GitHub
parent f6b29d3b71
commit 958233f4f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -610,6 +610,7 @@ export const GLOBAL_DEFS = {
},
file: {
data: "string",
dataFormat: "string",
name: "text",
type: "file",
},

View File

@ -366,6 +366,7 @@ class FilePickerWidget extends BaseWidget<
data: reader.result,
name: file.meta ? file.meta.name : `File-${index + fileCount}`,
size: file.size,
dataFormat: this.props.fileDataType,
};
resolve(newFile);
};
@ -377,6 +378,7 @@ class FilePickerWidget extends BaseWidget<
data: data,
name: file.meta ? file.meta.name : `File-${index + fileCount}`,
size: file.size,
dataFormat: this.props.fileDataType,
};
resolve(newFile);
}