<@U5FHY30BV> you have to use multipart/form-data f...
# suitescript
e
@darrenhillconsulting you have to use multipart/form-data for content-type
d
Still struggling, do you have a code snippet for using multipart/form-data?
e
first declare this -- var contentType = 'multipart/form-data;boundary=XXFeedBoundary';
and then -- fileContent = '--XXFeedBoundary\n\n' + fileContent + '--XXFeedBoundary--';
where fileContent is defined as var fileContent = file.load(fileId).getContents();
and then use fileContent as the body of what you're sending via https.post