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

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

php - Unrecognized option "knpu_guard" under "security.firewalls.main" (Symfony) -