Implemented testing of file upload.

This should be fine.