diff --git a/src/controls/dynamicForm/DynamicForm.tsx b/src/controls/dynamicForm/DynamicForm.tsx index 81041ce55..617fe8206 100644 --- a/src/controls/dynamicForm/DynamicForm.tsx +++ b/src/controls/dynamicForm/DynamicForm.tsx @@ -463,7 +463,7 @@ export class DynamicForm extends React.Component< ) // Replace not allowed chars in folder name : ""; // Empty string will be replaced by SPO with Folder Item ID - const fileCreatedResult = await library.rootFolder.files.add(itemTitle, selectedFile.downloadFileContent(), true); + const fileCreatedResult = await library.rootFolder.files.addChunked(encodeURI(itemTitle), await selectedFile.downloadFileContent()); const fields = await fileCreatedResult.file.listItemAllFields(); if (fields[idField]) {