Atozed Forums
detect the file type of CSV/TXT file - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: detect the file type of CSV/TXT file (/thread-4522.html)



detect the file type of CSV/TXT file - pgnair - 09-19-2024

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


RE: detect the file type of CSV/TXT file - pgnair - 09-23-2024

(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?


RE: detect the file type of CSV/TXT file - joelcc - 09-23-2024

(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);