Skip to content

Commit 4bcfd79

Browse files
Merge pull request #288 from Azure-Samples/leahxia/fix-filesharing-chat-compiste
[filesharing-chat-composite] Fix the file upload functionality
2 parents b336ff9 + 0617778 commit 4bcfd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui-library-filesharing-chat-composite/app/src/AtachmentUploadOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const fileSelectionHandler: AttachmentSelectionHandler = async (
3030
continue;
3131
}
3232

33-
const uniqueFileName = `${task}-${v4()}-${task.file?.name}`;
33+
const uniqueFileName = `${task.taskId}-${v4()}-${task.file?.name}`;
3434
const formData = new FormData();
3535
formData.append("file", task.file, task.file?.name);
3636

0 commit comments

Comments
 (0)