End-to-end working version of file download/upload.