Web server seems to be working, but still fails tests. Also, doesn't work properly with files larger than a MB.