Fixed epic bugs in file upload.
- Actually made it work.