You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Uuid](https://github.com/uuidjs/uuid) (★ 8.7k) generate RFC-compliant UUIDs in JavaScript.
150
-
-[Busboy](https://github.com/mscdex/busboy) (★ 1.8k) a streaming parser for HTML form data for Node.js.
151
-
-[Sharp](https://github.com/lovell/sharp) (★ 15.8k) high performance Node.js image processing.
152
-
-[Glob](https://github.com/isaacs/node-glob) (★ 6.2k) glob functionality for Node.js.
153
148
-[Fs-extra](https://github.com/jprichardson/node-fs-extra) (★ 6.6k) Node.js: extra methods for the fs object like copy(), remove(), mkdirs().
154
149
-[Resize Image](https://github.com/firebase/extensions/tree/master/storage-resize-images) (★ 372) Firebase Extension to create resized versions of images uploaded to Cloud Storage.
155
150
@@ -579,7 +574,7 @@ const date = Date.now();
579
574
580
575
## File Upload
581
576
582
-
For file upload, we used the [Firebase Client](https://firebase.google.com/docs/storage/web/upload-files?authuser=1#upload_files) together with **Firebase Storage**. We store the users profile image in a subfolder named `/users`.
577
+
For file upload, we used the [Firebase Client](https://firebase.google.com/docs/storage/web/upload-files?authuser=1#upload_files) together with **Firebase Storage** for our storage needs. We store the users profile image in a subfolder named `/users`.
583
578
584
579
### Image Resize
585
580
@@ -588,6 +583,14 @@ Every image uploaded to the storage is resized to our size preference (`200px x
588
583
589
584
**Setting your image resize**
590
585
586
+
If you want to install it from the cmd, you can execute:
<li>Go to your Firebase Proyect on <a href= "https://console.firebase.google.com/u/1/">Firebase Console</a> </li>
593
596
<li>Select extensions from the sidebar</li>
@@ -597,6 +600,8 @@ Every image uploaded to the storage is resized to our size preference (`200px x
597
600
<li>Click on install extension</li>
598
601
</ol>
599
602
603
+
In case you do not want to upload a resized version and upload the original file, you should avoid step **5**.
604
+
600
605
### Storage Rules
601
606
602
607
To make images reachable, we needed to set our storage rules to allow users to `write` on the storage made for the user logo, only if they are authenticated, but they can always `read`, this was set for saving the user´s logo path on the database.
0 commit comments