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

Incomplete documentation #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ The put method takes the path to the local file and an optional user token.
```python
storage = firebase.storage()
# as admin
storage.child("images/example.jpg").put("example2.jpg")
file = storage.child("images/example.jpg").put("example2.jpg")
# as user
storage.child("images/example.jpg").put("example2.jpg", user['idToken'])
file = storage.child("images/example.jpg").put("example2.jpg", user['idToken'])
```

### download
Expand All @@ -396,7 +396,7 @@ storage.child("images/example.jpg").download("downloaded.jpg")
The get_url method takes the path to the saved database file and returns the storage url.

```
storage.child("images/example.jpg").get_url()
storage.child("images/example.jpg").get_url(file['downloadTokens'])
# https://firebasestorage.googleapis.com/v0/b/storage-url.appspot.com/o/images%2Fexample.jpg?alt=media
```

Expand Down