Skip to content

Commit

Permalink
Merge pull request #19 from formkiq/issue-18-attachment-content-type
Browse files Browse the repository at this point in the history
changed attachment content type to match file content type
  • Loading branch information
reganwolfrom authored Oct 3, 2020
2 parents 71861da + 431a08e commit 2d78ed9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build/dist/web-cjs/formkiq-client-sdk-cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion build/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
3 changes: 1 addition & 2 deletions examples/jobform/formkiq-client-sdk-cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2d78ed9

Please sign in to comment.