rondog Posted April 15, 2010 Share Posted April 15, 2010 When uploading, how do I tell what kind of file it is on the mac? I found a function that took the file extension but on macs, their usually isnt a file extension. What would I do in this situation? Link to comment https://forums.phpfreaks.com/topic/198674-determining-file-type/ Share on other sites More sharing options...
Ken2k7 Posted April 15, 2010 Share Posted April 15, 2010 If there isn't a file extension, just treat it as a txt file or don't allow the user to upload those files. Link to comment https://forums.phpfreaks.com/topic/198674-determining-file-type/#findComment-1042617 Share on other sites More sharing options...
Pikachu2000 Posted April 15, 2010 Share Posted April 15, 2010 The overwhelming majority of files on all of my Macs have filename extensions. What files would you expect to be uploaded from a Mac that wouldn't have an extension? Link to comment https://forums.phpfreaks.com/topic/198674-determining-file-type/#findComment-1042681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.