thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 526 forks source link

how to get image path to pass it to storage.child(storage/image/path).download() #348

Closed mustafaelghrib closed 4 years ago

mustafaelghrib commented 4 years ago

Hi, when I return the image value it returns the URL like this https://firebasestorage.googleapis.com/v0/b/<my-firebase-app-name>.appspot.com/o?name=uploads%2Ftrain%2F1589391958010.jpg&uploadType=resumable&upload_id=<some-id>&upload_protocol=resumable

in the above URL, I have this uploads%2Ftrain%2F1589391958010.jpg now I want to get the image path like this uploads/train/1589391958010.jpg to be able to pass it to storage.child(storage/image/path).download()

Does anyone know how to do that?