2
0

🚑 (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

@ -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",

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
}
}[]

View File

@ -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",

View File

@ -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",