Felicia
05/12/2021, 2:12 AMvar data = new FormData();
$.each( $( '.file' )[ 0 ].files, function( i, file ) {
console.log( file );
data.append( 'file-' + i, file );
} );
console.log( data );
$.ajax( {
url: postURL,
data: data,
cache: false,
contentType: false,
processData: false,
method: 'POST',
type: 'POST', // For jQuery < 1.9
success: function( data ) {
alert( data );
}
however, the body of the request in the suitelet is empty.
any help is greatly appreciated!!Rodmar Dimasaca
05/12/2021, 7:43 AM