HTTP request zip file upload using API error

I encountered an issue uploading a zip file from my local machine to SharePoint. While I could successfully upload the file using Postman with the file body as binary, when attempting the same operation in UiPath HTTP Request activity by passing the body as a base64 string, I received an error.

@Rahul_Rajendran,

Postman and HTTP Request activity works little bit differently when it comes to uploading files.

We have File Attachments property in HTTP Request where you should be attaching your file to upload.

Uploading through body would not work here.

Refer this document.

Here you can find the logic to upload dynamic number of attachments.

Thanks,
Ashok :slight_smile: