I am trying to fetch a file from box & then upload it another server. This complete process is being done in pre-request script. I was able to successfully get the file buffer from box but I am struck at uploading the file to another server,as I need to send the data as formdata which needs multipart boundary.
If I use postman to upload file, then boundary is automatically calculated by postam. How to calculate/prepare multipart form-data in pre-request script?