mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
refactor(client): update file handling in file upload functions
This commit is contained in:
@@ -351,6 +351,7 @@ export const useChatStore = createPersistStore(
|
||||
if (attachFiles && attachFiles.length > 0) {
|
||||
let fileContent = userContent + " Here are the files: \n";
|
||||
for (let i = 0; i < attachFiles.length; i++) {
|
||||
fileContent += attachFiles[i].name + "\n";
|
||||
fileContent += await readFileContent(attachFiles[i]);
|
||||
}
|
||||
mContent = [
|
||||
|
||||
Reference in New Issue
Block a user