I'm trying to upload a file to Sharepoint site using REST API in Postman but getting 'Bad Request - Invalid URL' error.

I'm calling API https://mysite.sharepoint.com/sites/<site_name>/_api/web/GetFolderByServerRelativeUrl('/NonPROD1/INT020')/Files/add(url='file', overwrite=true)

The Folder structure on the sharepoint site is


I've checked the solution @ Posting a PDF file to SharePoint via Postman - JSON format but I can't use JQuery to test it.

Request Header Request Header

Request Body Request Body

Error Error

Please can you help fixing this issue?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.