question

Phoebe-4454 avatar image
0 Votes"
Phoebe-4454 asked ·

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

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ryanchill avatar image
0 Votes"
ryanchill answered ·

Have a look at https://docs.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

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Phoebe-4454 avatar image
0 Votes"
Phoebe-4454 answered ·

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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.