Firebase Storage

From your firebase console open the settings and click on Get Started.

Our documents will be Resumes, CVs and Cover Letters. Similarly to firestore they will be saved under


eg: /users/E77oXZRvPyZtEjQoS7FeA4g6w6i1/pLbAjzAb7RHxyeZqYH05/1/mymastercv.pdf
eg: /users/E77oXZRvPyZtEjQoS7FeA4g6w6i1/pLbAjzAb7RHxyeZqYH05/2/mymastercv_something.pdf

This permits to have multiple version of the same document and mantain the original filename

These security rules will protect the user folder and limit upload size.

service {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    match /users/{uid}/{allPaths=**} {
      allow read: if isCurrentUser(uid);
      allow write: if isCurrentUser(uid) &&
                      lessThanNMegabytes(n) &&
                      request.resource !=null &&
                      filename.size() < 50;

function isCurrentUser(uid) {
    return request.auth.uid == uid;

function lessThanNMegabytes(n) {
    return request.resource.size < n * 1024 * 1024;