Early version of file upload