I am successfully uploading images using AngularFire2 to Firebase Storage.
I have the following upload code.
this.AfStorage.ref(`images/${userId}/${timeStamp}`).putString(base64Image,'data_url');
There are a few issues that I want to solve.
- How can I set a limit on the file size? Meaning I want the user to be able to upload files which are less than 10mb.
- How can I limit the file number? Meaning I want one user to be able to upload only 3 files.
If there are no firebase server size solutions do suggest some client size solutions.
Thanks