Skip to content

Commit

Permalink
fix: send form only via formdata
Browse files Browse the repository at this point in the history
  • Loading branch information
lfsigreja committed Dec 2, 2024
1 parent cca4ca7 commit fdbfaa0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,13 @@ const handlePOST = async (values) => {
delete transformedValues["file"];
formData.append('data', JSON.stringify(transformedValues))
const url = `https://www.azion.com/api/careers/inhire/post?id=${props.jobId}`
const request = {
method: 'POST',
body: formData,
headers: {
"X-Extra-Data": JSON.stringify(transformedValues)
}
body: formData
};
return fetch(url, request).then(function (response) {
Expand Down

0 comments on commit fdbfaa0

Please sign in to comment.