🚑 (fileUpload) Fix file upload in linked typebots

This commit is contained in:
Baptiste Arnaud
2023-09-26 08:07:33 +02:00
parent b81fcf0167
commit 7b3cbdb8e8
6 changed files with 89 additions and 21 deletions

View File

@@ -58,9 +58,7 @@ export const FileUploadForm = (props: Props) => {
{
file,
input: {
resultId: props.context.resultId,
typebotId: props.context.typebot.id,
blockId: props.block.id,
sessionId: props.context.sessionId,
fileName: file.name,
},
},
@@ -86,9 +84,7 @@ export const FileUploadForm = (props: Props) => {
files: files.map((file) => ({
file: file,
input: {
resultId,
typebotId: props.context.typebot.id,
blockId: props.block.id,
sessionId: props.context.sessionId,
fileName: file.name,
},
})),

View File

@@ -5,9 +5,7 @@ type UploadFileProps = {
files: {
file: File
input: {
typebotId: string
blockId: string
resultId: string
sessionId: string
fileName: string
}
}[]