Skip to content

Commit

Permalink
fix: display full ist of supported file extensions (#129)
Browse files Browse the repository at this point in the history
fix #128
  • Loading branch information
massi-ang authored Oct 23, 2023
1 parent 360c615 commit e2e255b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface DataFileUploadProps {
}

const fileExtensions = new Set([
"csv",
".csv",
".doc",
".docx",
".epub",
Expand Down Expand Up @@ -200,7 +200,7 @@ export default function DataFileUpload(props: DataFileUploadProps) {
showFileSize
showFileThumbnail
tokenLimit={3}
constraintText="Text documents up to 100MB supported (.pdf, .docx, .txt, etc.)"
constraintText={`Text documents up to 100MB supported (${Array.from(fileExtensions.values()).join(", ")})`}
fileErrors={fileErrors}
errorText={uploadError}
/>
Expand Down

0 comments on commit e2e255b

Please sign in to comment.