Skip to content

Commit

Permalink
Fix for sendFileByUpload method
Browse files Browse the repository at this point in the history
  • Loading branch information
olegius88 committed Mar 21, 2023
1 parent 35c9646 commit 1dd5fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/FileAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FileAPI {
method: 'post',
url: CommonUtils.generateMethodURL(this._restAPI.params, method),
data: formData,
... formData.getHeaders()
headers: formData.getHeaders()
})
return response.data;
}
Expand Down Expand Up @@ -81,4 +81,4 @@ class FileAPI {
}
}

export default FileAPI;
export default FileAPI;

0 comments on commit 1dd5fe3

Please sign in to comment.