how can i use upload.setAcceptFilter? i just want to upload csv file, is th

how can i use upload.setAcceptFilter?
i just want to upload csv file, is that the right function to use?

Thanks