fix: upload file
This commit is contained in:
parent
af54914bbb
commit
906c6066e3
1 changed files with 3 additions and 3 deletions
|
|
@ -145,9 +145,9 @@ async function uploadProfile(code: string) {
|
|||
async function uploadFileDoc(uploadUrl: string, file: any) {
|
||||
try {
|
||||
await axios.put(uploadUrl, file, {
|
||||
headers: {
|
||||
"Content-Type": file.type,
|
||||
},
|
||||
// headers: {
|
||||
// "Content-Type": file.type,
|
||||
// },
|
||||
});
|
||||
} catch (e) {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue