File tree Expand file tree Collapse file tree 4 files changed +3
-30
lines changed
service/common/file/image Expand file tree Collapse file tree 4 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ export type preUploadImgProps = OutLinkChatAuthProps & {
44 // expiredTime?: Date;
55 metadata ?: Record < string , any > ;
66} ;
7- export type UploadImgProps = preUploadImgProps & {
8- base64Img : string ;
9- } ;
107
118export type UrlFetchParams = {
129 urlList : string [ ] ;
Original file line number Diff line number Diff line change 1- import { type UploadImgProps } from '@fastgpt/global/common/file/api' ;
1+ import { type preUploadImgProps } from '@fastgpt/global/common/file/api' ;
22import { imageBaseUrl } from '@fastgpt/global/common/file/image/constants' ;
33import { MongoImage } from './schema' ;
44import { type ClientSession , Types } from '../../../common/mongo' ;
@@ -18,7 +18,8 @@ export async function uploadMongoImg({
1818 metadata,
1919 shareId,
2020 forever = false
21- } : UploadImgProps & {
21+ } : preUploadImgProps & {
22+ base64Img : string ;
2223 teamId : string ;
2324 forever ?: Boolean ;
2425} ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { POST } from '@/web/common/api/request' ;
2- import type { UploadImgProps } from '@fastgpt/global/common/file/api.d' ;
32import type { CreatePostPresignedUrlResult } from '@fastgpt/service/common/s3/type' ;
43import { type AxiosProgressEvent } from 'axios' ;
54
You can’t perform that action at this time.
0 commit comments