Firebase repository, make sure the image is genuine and not executable.
With firebase, even if you specify the metadata and content type, what other steps can you take to make sure the file you download is indeed the image?
On the client side, do we have libs in javascript that validate and validate images? I mean there is this post: Show Image and Check Image Extension Before File Upload Using Javascript
But this allows us to test the extension. What if the user renames the executable to .jpg and then downloads it. How can we prevent such situations?
+3
source to share