Send file to main process from webpage

Is there any way to send a file to the main electron process from the BrowserWindow? I’m trying to save files from my app and am unable to upload them like I would with a regular webserver.