Firebase Storage, Verify if image is genuine and not an executable

Viewed 155

With firebase, even if you specify the metadata and content type, what other steps can be taken to make sure that the file being uploaded is genuinely an image?

On client side, do we have libs in javascript that validate&verify images? I mean there is this post : Display image and Validation of image extension before uploading file Using Javascript

But it allows us to check the extension. What if a user renames an executable to .jpg and then uploads it. How can we prevent such situations?

1 Answers

I believed after all the precautions taken from our side, we should leave and trust the firebase team with the security part. Most probably they should have an antivirus software on their side.

Related