upload and delete files