I've created a web application that lets users create cool Avatars of themselves. I want users to be able to share their created Avatars to be displayed on our "Recent Creations" page.
What I am worried about though is that if I accept POST requests from my app (currently as a Base64 encoded string in the POST body) , technically malicious users could send ANY string representing any sort of photo, which would then be posted to the gallery!
How do I make sure that posts are ONLY images that were created on my app?