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