When trying to upload a CSV file via an upload control, the following error is displayed:
“ An exception has occurred while executing the form method F0_ctl00_ControlRef8_ControlRef15_ControlRef15_ControlRef8b_Main_Main_ctl00Upload.The file type of the uploaded file testexel.csv is invalid.”
Accepted Mime Types = "text/comma-separated-values" also throws this error.
In the XML file, ".csv" is specified as the MIME type. This is not a MIME type.
For CSV, text/csv is used, for example. Or the F12 tool can be used to check which MIME type the browser sends. The MIME type used by .NET for CSV is application/vnd.ms-excel.