Upload file to SharePoint from FTP server and Database view using GraphAPI

Phoebe 1 Reputation point
2020-05-19T16:27:01.163+00:00

I am new to Graph API and I am trying to upload a file to the SharePoint. I was able to successfully execute the examples given in the document. But, I have two requirements 1. Upload file from a database view 2. Upload file from FTP server. I do not see any example or the request body for such requirement on the documentation available. Can anyone please help me how can I pass the values to the API.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,848 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ryan Hill 25,486 Reputation points Microsoft Employee
    2020-05-19T23:37:32.033+00:00

    Have a look at https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http where {site-id} is your SharePoint site you're uploading to. {item-id} you can get by enumerating /sites/{site-id}/drive or /sites/{site-id}/drives

    0 comments No comments

  2. Phoebe 1 Reputation point
    2020-05-20T06:25:31.417+00:00

    I was able to follow the steps given in the documentation and upload a file to SharePoint. However, I do not know how I can upload a file from a particular source - local directory or FTP server or database view. What are the required request headers and body for such requirement. I was not able to find any information related to such scenario.

    0 comments No comments