refactor: add Content-Type
This commit is contained in:
parent
055a8a1a9b
commit
0a7ffb646f
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
`/customer-branch/${opts.branchId}/attachment/${opts.filename || opts.file.name}`,
|
||||
opts.file,
|
||||
{
|
||||
headers: { 'X-Rtid': flowStore.rtid },
|
||||
headers: { 'X-Rtid': flowStore.rtid, 'Content-Type': opts.file.type },
|
||||
onUploadProgress: (e) => console.log(e),
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue