refactor: add Content-Type

This commit is contained in:
Net 2024-08-27 16:18:56 +07:00 committed by Methapon Metanipat
parent 055a8a1a9b
commit 0a7ffb646f

View file

@ -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),
},
);