Skip to content

Commit 47b628a

Browse files
authored
Merge pull request #281 from FlowiseAI/bugfix/Upload-File-Type
Bugfix/Allow empty file type uploads
2 parents 9d160ad + d2d146f commit 47b628a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Bot.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
11261126
}
11271127
// Only add files
11281128
if (
1129+
!file.type ||
11291130
!uploadsConfig()
11301131
?.imgUploadSizeAndTypes.map((allowed) => allowed.fileTypes)
11311132
.join(',')
@@ -1196,6 +1197,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
11961197
}
11971198
// Only add files
11981199
if (
1200+
!file.type ||
11991201
!uploadsConfig()
12001202
?.imgUploadSizeAndTypes.map((allowed) => allowed.fileTypes)
12011203
.join(',')

0 commit comments

Comments
 (0)