0

I have zip file in my Google Drive. And I want to unzip it and store back in Google Drive using Node.JS

I implement code for download file from drive and extract file.

Now I am trying to implement code for upload this folder in Google Drive. But I am not able to implement this. So I want help for Upload folder into google drive using drive api in node.js

Or any node module for this ?

Folder contains man sub folders and files like images and pdf etc.

Anyone please help me for this

  • I have to apologize for my poor English skill. Unfortunately, I cannot understand your current situation from `But I am not able to implement this.`. Can I ask you about the detail of your current issue and your goal? – Tanaike Feb 04 '22 at 00:03
  • Hi, I am trying to make MERN project in which user will provide link (Google drive link or any index link) of zip file. In backend I will extract this zip file and Extracted folder is upload in my google drive using Node.JS and I will send back google drive ink of that folder to the user. So, in backend code till Extract folder in completed. Now i want to implement code that Extracted folder (contains subfolders and files) upload in google drive. But I don't know how ? – Bhavya Dudhia Feb 04 '22 at 04:03
  • Thank you for replying. In your goal, you want to unzip a zip file and upload the files to Google Drive. Is my understanding correct? If my understanding is correct, it is required to use Drive API. In your situation, you have already been able to use Drive API? – Tanaike Feb 04 '22 at 05:57
  • Yes, Your understanding is correct. And I am also able to use Drive API. – Bhavya Dudhia Feb 04 '22 at 06:07
  • Thank you for replying. For example, you can see the sample script for uploading the files to Google Drive using googleapis for Node.js at [here](https://stackoverflow.com/search?q=%5Bgoogle-drive-api%5D+upload+%5Bnode.js%5D). And, about the method for unzipping, you can see the sample script at [here](https://stackoverflow.com/q/15530435/7108653). How about combining them? If these were not useful, I apologize. – Tanaike Feb 04 '22 at 06:29
  • Thank You for giving you time. I see your refrences but i can't found proper solution. I found only file upload to Google drive that i already know. I want to upload full foler with same folder tree. Thank You – Bhavya Dudhia Feb 04 '22 at 09:48

0 Answers0