Skip to content

Commit

Permalink
fix: ai agent upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Feb 7, 2024
1 parent 932b5f8 commit 4dca9a9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/builder/src/utils/file/upload.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { notNeedAuthRequest } from "@illa-public/illa-net"
import Axios from "axios"

export const upload = async (url: string, file: Blob) => {
const resUrl = url.split("?")[0]
await notNeedAuthRequest({
url,
method: "PUT",
data: file,
await Axios.put(url, file, {
headers: {
"Content-Type": "multipart/form-data",
"Content-Encoding": "compress",
"x-amz-acl": "public-read",
},
})
Expand Down

0 comments on commit 4dca9a9

Please sign in to comment.