HaLo2FrEeEk Posted April 18, 2007 Share Posted April 18, 2007 Hey, I have an upload script that I need to be only able to upload two different file types, ppf and sppf, the mime type of which is application/ovtet-stream. I cannot find a suitable header or footer consistent in all the files, is there any way I can still verify that the files being uploaded are in fact either sppf or ppf, and not simply a renamed exe or some other file? Perhaps a process of elimination, like checking to see whether it does not have the headers you would expect in other files of the mime type application/octet-stream? Can someone please help me? Quote Link to comment https://forums.phpfreaks.com/topic/47628-confirming-uploaded-file-type/ Share on other sites More sharing options...
MadTechie Posted April 18, 2007 Share Posted April 18, 2007 what are (s)ppf files ? what program uses them ? Quote Link to comment https://forums.phpfreaks.com/topic/47628-confirming-uploaded-file-type/#findComment-232574 Share on other sites More sharing options...
HaLo2FrEeEk Posted April 18, 2007 Author Share Posted April 18, 2007 They are mods for Halo 2, patches that you apply to the map to mod it. There really aren't any official programs that use it, but dotHalo and entity, as well as the ppfinator and sppfinator. Quote Link to comment https://forums.phpfreaks.com/topic/47628-confirming-uploaded-file-type/#findComment-232595 Share on other sites More sharing options...
MadTechie Posted April 18, 2007 Share Posted April 18, 2007 only thing i could think of is find something incommon with the files to check for :-\ ie is the first 4k always the same (excluding a few bytes in fixed positions) Quote Link to comment https://forums.phpfreaks.com/topic/47628-confirming-uploaded-file-type/#findComment-232600 Share on other sites More sharing options...
HaLo2FrEeEk Posted April 18, 2007 Author Share Posted April 18, 2007 Well, I tried that, but there doesn't seem to be anything like that. There is a header about windows media audio and such, but I figured that is in all wma's too, so people could upload those. Quote Link to comment https://forums.phpfreaks.com/topic/47628-confirming-uploaded-file-type/#findComment-232610 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.