🚑 (fileUpload) Fix file upload in linked typebots
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/js",
|
||||
"version": "0.1.30",
|
||||
"version": "0.1.31",
|
||||
"description": "Javascript library to display typebots on your website",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
@ -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,
|
||||
},
|
||||
})),
|
||||
|
@ -5,9 +5,7 @@ type UploadFileProps = {
|
||||
files: {
|
||||
file: File
|
||||
input: {
|
||||
typebotId: string
|
||||
blockId: string
|
||||
resultId: string
|
||||
sessionId: string
|
||||
fileName: string
|
||||
}
|
||||
}[]
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/nextjs",
|
||||
"version": "0.1.30",
|
||||
"version": "0.1.31",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/react",
|
||||
"version": "0.1.30",
|
||||
"version": "0.1.31",
|
||||
"description": "Convenient library to display typebots on your React app",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user