mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 14:02:08 +08:00
fixed typescript error
This commit is contained in:
@@ -64,7 +64,7 @@ export function base64Image2Blob(base64Data: string, contentType: string) {
|
||||
return new Blob([byteArray], { type: contentType });
|
||||
}
|
||||
|
||||
export function uploadImage(file: File): Promise<string> {
|
||||
export function uploadImage(file: Blob): Promise<string> {
|
||||
const body = new FormData();
|
||||
body.append("file", file);
|
||||
return fetch(UPLOAD_URL, {
|
||||
|
Reference in New Issue
Block a user