Implemented a simple file upload

TODO: Use non-blocking stream for file upload