You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/hooks/use-file-attachments.ts
+63-61Lines changed: 63 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,8 @@ export function useFileAttachments(props: UseFileAttachmentsProps) {
104
104
},[])
105
105
106
106
/**
107
-
* Processes and uploads files to S3
108
-
* @param fileList - Files to process
107
+
* Uploads files in parallel so a slow file does not block faster ones queued
108
+
* behind it. All placeholders insert in a single state update for a stable row.
109
109
*/
110
110
constprocessFiles=useCallback(
111
111
async(fileList: FileList)=>{
@@ -114,67 +114,69 @@ export function useFileAttachments(props: UseFileAttachmentsProps) {
0 commit comments