mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-14 15:11:28 +00:00
Merge remote
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { getAuthHeaders } from "../api";
|
||||
import { getHeaders } from "../api";
|
||||
|
||||
export class FileApi {
|
||||
async upload(file: any): Promise<void> {
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
var headers = getAuthHeaders();
|
||||
var headers = getHeaders();
|
||||
var res = await fetch("/api/file/upload", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
|
Reference in New Issue
Block a user