Hi,
I am current making a customize button next to the Sharepoint's default upload button to upload specific image.
Does anyone know the REST api structure to upload image from javascript/c# to sharepoint document?
Thanks in advance!
Hi phamtri96,
We need to get SharePoint OAuth access token to send request from our web resource to REST API endpoint of SharePoint.
In addition, if you just want to upload image to SharePoint, an alternative is to create a webhook in Power Automate:
Image data can be read using HTML 5 file reader API, then sending the data to the automatically generated endpoint.
In the flow, the data will be saved to SharePoint site with OOB SharePoint connector.
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156