upload files and remove files