Skip to content

Commit 8981b82

Browse files
authored
Merge pull request #436 from rajinwonderland/master
fix (upload configs)
2 parents fef7ec8 + 22c2d2b commit 8981b82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/dropzone/components/utils/dropzone-ui.upload.utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export const uploadPromiseAxios = async (
2222

2323
const configParams =
2424
config ? {
25-
...config, ...DEFAULT_CONFIG
25+
...config, ...DEFAULT_CONFIG,
26+
headers: {
27+
...config?.headers,
28+
...DEFAULT_CONFIG?.headers
29+
}
2630
} : DEFAULT_CONFIG;
2731
let response: AxiosResponse<any, any>;//= { data: {} };// await axios.post(url, formData, configParams);
2832

@@ -131,4 +135,4 @@ export interface DropzoneUIResponse {
131135
}
132136
133137
}
134-
} */
138+
} */

0 commit comments

Comments
 (0)