CodeIgniter Forums
File Extension Lookup - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: File Extension Lookup (/thread-27048.html)



File Extension Lookup - El Forum - 01-30-2010

[eluser]Cro_Crx[/eluser]
Hey All

For the CMS system I use I'm displaying all the uploaded files on the admin control panel. The file types can basically be anything the user wants to upload. At the moment i'm displaying the file extension to the user, although i'd like to be able to display the file type for popular extensions, or just the category, so jpg/png/gif would display as 'Image' rather than just using their extensions.

Is there any online resources that have a lookup table for common filetypes I could use ? Anyone have one that I could use ? I googled fora bit but couldn't find anything for what I needed.

I think I might need to create one myself with 20 - 30 file formats that are commonly going to be uploaded.