android - How can I change name of the uploaded file to firebase storage? -


i have created storage reference , described file want change name of it. storage reference has no method related goal.

you can change image name this:

storage = firebasestorage.getinstance().getreference(); long tslong = system.currenttimemillis() / 1000; string ts = tslong.tostring(); storagereference storagereference = storage.child("image").child(ts + ".jpg"); 

Comments

Popular posts from this blog

python - What's the Pythonic way to report nonfatal errors in a parser? -

sql server - Deadlock occuring in Clustered Columnstore index -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -