Added function and test page for uploading files.