File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7919,7 +7919,7 @@ class ApiClient {
79197919 await Promise . resolve ( new Promise ( ( resolve ) => {
79207920 var xhttp = new XMLHttpRequest ( ) ;
79217921 xhttp . open ( "PUT" , url , true ) ;
7922- xhttp . setRequestHeader ( 'Content-Type' , 'multipart/form-data' ) ;
7922+ xhttp . setRequestHeader ( 'Content-Type' , file . type ) ;
79237923 xhttp . onreadystatechange = function ( ) {
79247924 if ( this . status == 200 ) {
79257925 response = {
@@ -8260,7 +8260,6 @@ class WebFormsHandler {
82608260 data . formFields = [ ] ;
82618261 if ( fkqFormElement . getAttribute ( 'name' ) ) {
82628262 data . formName = fkqFormElement . getAttribute ( 'name' ) ;
8263- console . log ( data . formName ) ;
82648263 }
82658264 const formNameForCallbacks = data . formName ? data . formName : 'Unknown Form' ;
82668265 if ( onFormSubmitted ) {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class ApiClient {
8282 await Promise . resolve ( new Promise ( ( resolve ) => {
8383 var xhttp = new XMLHttpRequest ( ) ;
8484 xhttp . open ( "PUT" , url , true ) ;
85- xhttp . setRequestHeader ( 'Content-Type' , 'multipart/form-data' ) ;
85+ xhttp . setRequestHeader ( 'Content-Type' , file . type ) ;
8686 xhttp . onreadystatechange = function ( ) {
8787 if ( this . status == 200 ) {
8888 response = {
Original file line number Diff line number Diff line change @@ -7919,7 +7919,7 @@ class ApiClient {
79197919 await Promise . resolve ( new Promise ( ( resolve ) => {
79207920 var xhttp = new XMLHttpRequest ( ) ;
79217921 xhttp . open ( "PUT" , url , true ) ;
7922- xhttp . setRequestHeader ( 'Content-Type' , 'multipart/form-data' ) ;
7922+ xhttp . setRequestHeader ( 'Content-Type' , file . type ) ;
79237923 xhttp . onreadystatechange = function ( ) {
79247924 if ( this . status == 200 ) {
79257925 response = {
@@ -8260,7 +8260,6 @@ class WebFormsHandler {
82608260 data . formFields = [ ] ;
82618261 if ( fkqFormElement . getAttribute ( 'name' ) ) {
82628262 data . formName = fkqFormElement . getAttribute ( 'name' ) ;
8263- console . log ( data . formName ) ;
82648263 }
82658264 const formNameForCallbacks = data . formName ? data . formName : 'Unknown Form' ;
82668265 if ( onFormSubmitted ) {
You can’t perform that action at this time.
0 commit comments