diff --git a/build/dist/web-cjs/formkiq-client-sdk-cjs.js b/build/dist/web-cjs/formkiq-client-sdk-cjs.js index 5cc358d..95daea2 100644 --- a/build/dist/web-cjs/formkiq-client-sdk-cjs.js +++ b/build/dist/web-cjs/formkiq-client-sdk-cjs.js @@ -7919,7 +7919,7 @@ class ApiClient { await Promise.resolve(new Promise((resolve) => { var xhttp = new XMLHttpRequest(); xhttp.open("PUT", url, true); - xhttp.setRequestHeader('Content-Type', 'multipart/form-data'); + xhttp.setRequestHeader('Content-Type', file.type); xhttp.onreadystatechange = function() { if (this.status == 200) { response = { @@ -8260,7 +8260,6 @@ class WebFormsHandler { data.formFields = []; if (fkqFormElement.getAttribute('name')) { data.formName = fkqFormElement.getAttribute('name'); - console.log(data.formName); } const formNameForCallbacks = data.formName ? data.formName : 'Unknown Form'; if (onFormSubmitted) { diff --git a/build/src/ApiClient.js b/build/src/ApiClient.js index 3bdb642..f49ca47 100644 --- a/build/src/ApiClient.js +++ b/build/src/ApiClient.js @@ -82,7 +82,7 @@ export class ApiClient { await Promise.resolve(new Promise((resolve) => { var xhttp = new XMLHttpRequest(); xhttp.open("PUT", url, true); - xhttp.setRequestHeader('Content-Type', 'multipart/form-data'); + xhttp.setRequestHeader('Content-Type', file.type); xhttp.onreadystatechange = function() { if (this.status == 200) { response = { diff --git a/examples/jobform/formkiq-client-sdk-cjs.js b/examples/jobform/formkiq-client-sdk-cjs.js index 5cc358d..95daea2 100644 --- a/examples/jobform/formkiq-client-sdk-cjs.js +++ b/examples/jobform/formkiq-client-sdk-cjs.js @@ -7919,7 +7919,7 @@ class ApiClient { await Promise.resolve(new Promise((resolve) => { var xhttp = new XMLHttpRequest(); xhttp.open("PUT", url, true); - xhttp.setRequestHeader('Content-Type', 'multipart/form-data'); + xhttp.setRequestHeader('Content-Type', file.type); xhttp.onreadystatechange = function() { if (this.status == 200) { response = { @@ -8260,7 +8260,6 @@ class WebFormsHandler { data.formFields = []; if (fkqFormElement.getAttribute('name')) { data.formName = fkqFormElement.getAttribute('name'); - console.log(data.formName); } const formNameForCallbacks = data.formName ? data.formName : 'Unknown Form'; if (onFormSubmitted) {