Forum Discussion
AmitGogia
Jun 17, 2020Copper Contributor
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.
Ricardo Viana
Jun 17, 2020Steel Contributor
I am not facing this issue, I would open a MS ticket to have it checked
- AmitGogiaJun 17, 2020Copper Contributor
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 VianaJun 17, 2020Steel ContributorThat is correct, is the folder already created?
Sorry, I have no idea why it is failing- AmitGogiaJun 17, 2020Copper Contributor
Ricardo Viana I have checked the postman Console and error is appearing as "read ECONNRESET". Do you have any idea regarding this?