Apparently
this functionality is inherent to HTML5, but I'm not a programmer I have no idea
You can do a LOT with JavaScript. and MV/MZ's engines are open for you to tinker around and replace libraries and stuff. So I guess with enough skill and time you could achieve a lot of really insane things...
Let's put it in another perspective; Aren't there a lot of websites that access your camera, like selfie sites that let you edit the photos and such? I bet a lot of them use JavaScript. And so many JavaScript-based websites do other crazy stuff that you wouldn't normally think to do in a game, but can perfectly do in MZ!