Filtering data to upload