$ yarn add [email protected]:wearevolt/file-uploader.git
$ 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
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)