mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 04:33:42 +08:00
chore: modify supported upload types
This commit is contained in:
@@ -1363,7 +1363,7 @@ function _Chat() {
|
||||
...(await new Promise<FileInfo[]>((res, rej) => {
|
||||
const fileInput = document.createElement("input");
|
||||
fileInput.type = "file";
|
||||
fileInput.accept = ".pdf,.txt,.json,.csv,.md";
|
||||
fileInput.accept = ".pdf,.txt,.md,.json,.csv,.docx,.srt,.mp3";
|
||||
fileInput.multiple = true;
|
||||
fileInput.onchange = (event: any) => {
|
||||
setUploading(true);
|
||||
|
||||
Reference in New Issue
Block a user