-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double leading slash when uploading a file to a bucket #1972
Comments
The bucket name should simply be - const bucket = Storage().bucket('gs://my-name')
+ const bucket = Storage().bucket('my-name') And same for the file method: - const file = bucket.file('/foo/bar/lol.txt')
+ const file = bucket.file('foo/bar/lol.txt') With these changes, the file uploaded should land at: I don't think it'd be a big change if our library auto-removed any leading slashes from the input to |
@stephenplusplus I was using only
Since I am not feeding the library anywhere a double leading slash it is very strange that this is the outcome. I mean In my opinion this is straight up a bug, I can't think of anybody that needs to upload a file to 🍻 |
You're right, that is weird. I'll mark as |
Oh, and 🍻 |
I am looking at the code, I'll def try to help |
Environment details
Steps to reproduce
Given the above code it uploads a file at
gs://my-name//foo/bar/lol.txt
The text was updated successfully, but these errors were encountered: