Implement real file upload in submission page

Progress bars are still mocked, but file upload is actually being done.