Sync: Now able to upload files with multipart/form-data, which means files can be uploaded via JavaScript and a web interface!

Related to issue #418.