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