How to set destination while using uploadManyFiles in TransferManager #2492
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
type: question
Request for information or clarification. Not an issue.
I have a local directory and I want to upload its contents to cloud storage, but when using
transferManager.uploadManyFiles
with either the directory name, or array of files, the destination of the file in cloud storage is taken from the local file path.local directory structure:
here's my code
when uploaded with following code, it becomes
the prefix property works, but I want to upload files directly to
avatars/
there seem to be a
passthroughOptions
that can take a destination, but when usinguploadManyFiles
we don't know the exact file names, so can't make the full pathShouldn't it be that while using
prefix
, property, the local file path shouldn't be considered?The text was updated successfully, but these errors were encountered: