0

I want to upload file from Google Drive to my local folder using Javascript.Right now I have code in which I can download file from Google Drive.

But I am unable to move this file from Google Drive to local folder.

Can you give me suggestions to solve my problem? Following code gives me FileId.Now further problem I want to upload file using php. Sample code

  • seems server code , not client code – Álvaro Touzón Nov 10 '17 at 09:23
  • It is not possible to do this in pure JavaScript. JavaScript does not have and will never have access to your local filesystem. You would need some kind of local running server or application to do this. – D B Nov 10 '17 at 09:24
  • Thank you for suggetions. using javascript it return's me file id. now how can I solve this problem by passing file id to php code. – Deepak Nevde Nov 10 '17 at 09:28
  • answer to your qeustion https://stackoverflow.com/questions/9623593/pass-javascript-variable-to-php-code but your question itself needs more details. Why mix javascript with php? – oetoni Nov 10 '17 at 10:18
  • also...can you share the code till now please? – oetoni Nov 10 '17 at 10:23
  • Now further problem I want to upload file using php. Reference code is here : https://developers.google.com/drive/v2/web/picker#using_the_file_picker_with_team_drives – Deepak Nevde Nov 10 '17 at 10:50

0 Answers0