function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShailendraTiwariShailendraTiwari 

How to define request.setEndpoint path for file Save on google Drive?

I have problem of  "no protocol: /upload/drive/v2/Export.csv?uploadType=multipart HTTP/1.1 "  & I have set of Url is --request.setEndpoint('/upload/drive/v2/'+Drvfilename+'?uploadType=multipart HTTP/1.1'); my file Name is Drvfilename
Best Answer chosen by ShailendraTiwari
AshwaniAshwani
You need to provide complete endpoint URL like:

httpReq.setEndpoint('https://www.googleapis.com/upload/drive/v2/files/'+id+'?uploadType=media');

All Answers

AshwaniAshwani
You need to provide complete endpoint URL like:

httpReq.setEndpoint('https://www.googleapis.com/upload/drive/v2/files/'+id+'?uploadType=media');
This was selected as the best answer
Deepak Kumar ShyoranDeepak Kumar Shyoran
Set this end point 'https://www.googleapis.com/upload/drive/v2/files/' and this in header ('Content-Type','multipart/related; boundary="{bounday variable"')


ShailendraTiwariShailendraTiwari
Thanx  to  Deepak & Avilion

vanathi vvanathi v
Any Idea How to fetch File with content from GoogleGrive(which already exists in drive)??...
Cannot use Download URL as it keeps on changing,so Remote Site cannot be set.


Any Solution??....