I'm using Firebase Storage and everything works great.
How can I upload a file without specifying its name?
So the file will get a unique name by Firebase, like they do in the storage.
This is an example of what i'm using now:
firebase.initializeApp(config);
var fileUpload = document.getElementById("uploadFile").files;
var storageRef = firebase.storage().ref(fileUpload[0].name);
var uploadTask = storageRef.put(fileUpload[0]);
And I want to do someting like this:
firebase.initializeApp(config);
var fileUpload = document.getElementById("uploadFile").files;
var storageRef = firebase.storage().ref();
var uploadTask = storageRef.put(fileUpload[0]);
Appreciate any help you can provide. Thanks.