Logic for uploading csv targets