Skip to content

Commit

Permalink
Use provided transformRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu committed Oct 28, 2021
1 parent 5c219fb commit 29e257a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Form {
} else {
config.data = { ...this.data(), ...config.data }

if (hasFiles(config.data)) {
if (hasFiles(config.data) && !config.transformRequest) {
config.transformRequest = [data => serialize(data)]
}
}
Expand Down

0 comments on commit 29e257a

Please sign in to comment.