upload files in collect script