mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-22 00:36:48 +08:00
Merge remote-tracking branch 'upstream/main' into dev
# Conflicts: # app/components/chat.tsx # app/components/home.tsx # app/components/settings.tsx # app/components/sidebar.tsx # app/config/server.ts # app/constant.ts # app/layout.tsx # app/store/access.ts # app/utils/model.ts
This commit is contained in:
@@ -133,7 +133,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> {
|
||||
if (!window._SW_ENABLED) {
|
||||
// if serviceWorker register error, using compressImage
|
||||
return compressImage(file, 256 * 1024);
|
||||
|
||||
Reference in New Issue
Block a user