Skip to content

Commit bf8ff0f

Browse files
Merge pull request #421 from microsoft/checkfileupload
fix: File upload is significantly slower than expected
2 parents d7a312c + 20e76f6 commit bf8ff0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

App/frontend-app/src/components/uploadButton/uploadButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ const UploadDocumentsDialog = () => {
5959

6060
try {
6161
// Simulate upload delay
62-
await new Promise((resolve) => setTimeout(resolve, 2000));
62+
//File upload is significantly slower than expected, so commented out the line below.
63+
// await new Promise((resolve) => setTimeout(resolve, 2000));
6364
await importDocuments(formData); // Replace with actual upload API
6465

6566
// Update file status to success

0 commit comments

Comments
 (0)