Forum Discussion
AmitGogia
Jun 17, 2020MCT
File Upload in sharepoint Online
Hi All, I need to upload a simple text file in SharepointOnline. While trying to import the file through Postman, I am getting the error as "Could not get response". Request help for the case.
AmitGogia
Jun 17, 2020MCT
Since I am new to sharepoint and might have done something wrong. Hence, I am writing the steps that are performed:
1. API that is build: Site/_api/web/GetFolderByServerRelativeUrl('/Folder name')/Files/add(url='abc.txt',overwrite=true)
2. Authorization, Content length and X-RequestDigest values are passed.
3. File is added in the body header.
Pls let me know in case something is wrong.
Ricardo Viana
Jun 17, 2020Iron Contributor
That is correct, is the folder already created?
Sorry, I have no idea why it is failing
Sorry, I have no idea why it is failing
- AmitGogiaJun 17, 2020MCT
Ricardo Viana I have checked the postman Console and error is appearing as "read ECONNRESET". Do you have any idea regarding this?