We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932b5f8 commit 4dca9a9Copy full SHA for 4dca9a9
apps/builder/src/utils/file/upload.ts
@@ -1,14 +1,10 @@
1
-import { notNeedAuthRequest } from "@illa-public/illa-net"
+import Axios from "axios"
2
3
export const upload = async (url: string, file: Blob) => {
4
const resUrl = url.split("?")[0]
5
- await notNeedAuthRequest({
6
- url,
7
- method: "PUT",
8
- data: file,
+ await Axios.put(url, file, {
9
headers: {
10
"Content-Type": "multipart/form-data",
11
- "Content-Encoding": "compress",
12
"x-amz-acl": "public-read",
13
},
14
})
0 commit comments