download and upload files