fix(bot): 🐛 Accept file upload without fileType
This commit is contained in:
@@ -24,7 +24,7 @@ export const FileUploadForm = ({
|
||||
const { resultId } = useAnswers()
|
||||
const [selectedFiles, setSelectedFiles] = useState<File[]>([])
|
||||
const [isUploading, setIsUploading] = useState(false)
|
||||
const [uploadProgressPercent, setUploadProgressPercent] = useState(20)
|
||||
const [uploadProgressPercent, setUploadProgressPercent] = useState(10)
|
||||
const [isDraggingOver, setIsDraggingOver] = useState(false)
|
||||
const [errorMessage, setErrorMessage] = useState<string>()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { config, Endpoint, S3 } from 'aws-sdk'
|
||||
|
||||
type GeneratePresignedUrlProps = {
|
||||
filePath: string
|
||||
fileType: string
|
||||
fileType?: string
|
||||
sizeLimit?: number
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user