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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

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

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -