0

I have gone through the documentation provided on https://developers.google.com/drive/api/v3/manage-uploads but i'm unable to found a way to upload multiple files by single api request. I have used multipart and resumable both but they need single file(source). But i want to select multiple images(in thousand) to upload with resumeable operation.

Please help me or guide me a better solution in any technology.

Many Thanks!

Sourabh Bhutani
  • 623
  • 11
  • 21
  • As far as I know, you cannot upload multiple files with only one request. Check this [link](https://stackoverflow.com/questions/41039152/best-strategy-to-upload-multiple-files-to-google-drive-via-javascript-api) What you could do, is to append your array/list with your items(images) and then foreach this array/list and send the item as a parameter to your method/function. – GoodOldGuy May 03 '19 at 23:02
  • Can I ask you about the maximum file size in the files that you want to upload to Google Drive? – Tanaike May 03 '19 at 23:12
  • @Tanaike max file size is not fixed. – Sourabh Bhutani May 04 '19 at 04:49
  • @GoodNickName i want to upload images in huge amount as per your suggestion if i hit api for each image then i will cross request quota limit. – Sourabh Bhutani May 04 '19 at 08:34
  • You need to upload each file separately. You can request more quota from Google if necessary. – pinoyyid May 04 '19 at 09:18
  • @pinoyyid thanks. What is default quote and how much i can request to google team. My requirement is to upload millions of images in day. I don't want user to upload zip or directory. – Sourabh Bhutani May 04 '19 at 09:26
  • https://developers.google.com/docs/api/limits – pinoyyid May 04 '19 at 20:24

1 Answers1

0

create a bundle from mutible files use 7z or winrar zip then upload it as a single file extract it later on drive