Skip to content

Commit 4dca9a9

Browse files
committed
fix: ai agent upload
1 parent 932b5f8 commit 4dca9a9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/builder/src/utils/file/upload.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import { notNeedAuthRequest } from "@illa-public/illa-net"
1+
import Axios from "axios"
22

33
export const upload = async (url: string, file: Blob) => {
44
const resUrl = url.split("?")[0]
5-
await notNeedAuthRequest({
6-
url,
7-
method: "PUT",
8-
data: file,
5+
await Axios.put(url, file, {
96
headers: {
107
"Content-Type": "multipart/form-data",
11-
"Content-Encoding": "compress",
128
"x-amz-acl": "public-read",
139
},
1410
})

0 commit comments

Comments
 (0)