detect the file type of CSV/TXT file

<< Click to Display Table of Contents >>

Navigation:  Forum >

detect the file type of CSV/TXT file

Forum link

 

 

 


 

09-19-2024, 09:02 AM:

 

how to detect the file type or contented type of a csv file upload using fileuploader?

 

 

 


 

09-23-2024, 03:22 AM:

 

(09-19-2024, 09:02 AM)pgnair Wrote: [ -> ]how to detect the file type or contented type of a csv file upload using fileuploader?

 

Would someone please help with this?

 

 

 


 

09-23-2024, 01:22 PM:

 

(09-23-2024, 03:22 AM)pgnair Wrote: [ -> ] (09-19-2024, 09:02 AM)pgnair Wrote: [ -> ]how to detect the file type or contented type of a csv file upload using fileuploader?

 

Would someone please help with this?

 

You probably need to look at the mimetype.  Here is a code example.

 

    TIWMimeTypes.IsStaticFile(aFileName, aMimeType);