Skip to content

Commit

Permalink
[MDS-5746] Fix issue when uploading multiple files in parallel (#2902)
Browse files Browse the repository at this point in the history
[MDS-5746] Upload 1 file at a time
  • Loading branch information
simensma-fresh authored Jan 22, 2024
1 parent 3085b02 commit 847a410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/common/src/components/forms/RenderFileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const FileUpload = (props: FileUploadProps) => {
clearInterval(intervalId);
if (response.data.status === "Success") {
load(documentGuid);

props.onFileLoad(file.name, documentGuid, versionGuid);

if (props?.afterSuccess?.action) {
Expand Down Expand Up @@ -463,14 +464,15 @@ export const FileUpload = (props: FileUploadProps) => {
allowMultiple={props.allowMultiple}
onaddfilestart={props.addFileStart}
allowReorder={props.allowReorder}
maxParallelUploads={1}
maxFileSize={props.maxFileSize}
// maxFiles={props.maxFiles || undefined}
allowFileTypeValidation={acceptedFileTypes.length > 0}
acceptedFileTypes={acceptedFileTypes}
onaddfile={handleFileAdd}
onprocessfiles={props.onProcessFiles}
onprocessfileabort={props.onAbort}
// oninit={props.onInit}
oninit={props.onInit}
labelIdle={props?.labelIdle}
itemInsertLocation={props?.itemInsertLocation}
credits={null}
Expand Down

0 comments on commit 847a410

Please sign in to comment.