Skip to content

wearevolt/file-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-uploader

Install

$ yarn add [email protected]:wearevolt/file-uploader.git

Run

$ file-uploader <options> <type> <local file> <remote folder>
  • type - the type of uploading (gdrive)
  • local file - the path of the local file to upload
  • remote folder - the path to a folder inside the shared folder

Adapter settings

Google Drive

To upload files on Google Drive you have to create a service account and give it an access to a shared folder where you upload files.

options:

  • --gdrive-teamdrive - The name of the gdrive teamdrive (or set up FILE_UPLOADER_GDRIVE_TEAMDRIVE)
  • --gdrive-client-email - The client email of the service account (or set up FILE_UPLOADER_GDRIVE_CLIENT_EMAIL)
  • --gdrive-private-key - The private key of the service account (or set up FILE_UPLOADER_GDRIVE_PRIVATE_KEY)
  • --gdrive-chunks - The number of chunks for uploading at a time. The one chunk size is 256Kb (or set up FILE_UPLOADER_GDRIVE_CHUNKS)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published