Skip to content
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

HTTP Error #59

Open
djcomy opened this issue Jan 12, 2020 · 1 comment
Open

HTTP Error #59

djcomy opened this issue Jan 12, 2020 · 1 comment

Comments

@djcomy
Copy link

djcomy commented Jan 12, 2020

When uploading photo to Firebase Bucket, URL Error 401 is shown. Seems like it has some authorization issue. What to do, non of this two url does not work?

let url = "https://storage.googleapis.com/upload/storage/v1/b/\(Config.googleStorageBucket)/o?name=\(filename)"
let url = "https://www.googleapis.com/upload/storage/v1/b/\(Config.googleStorageBucket)/o?name=\(filename)"

@gabek
Copy link
Owner

gabek commented Jan 13, 2020

Hmm! Just throwing out something obvious, does that bucket's permissions allow for public uploads?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants