Hello there,
Something weird happend over at one of my sites.. members to that site can upload zip and rar files.. since i want to be ABSOLUTELY sure that the files they upload are .rar and .zips i check it like this:
// check to see if ZIP or RAR file
if (($zip_type != "application/x-zip-compressed") && ($zip_type != "application/x-rar-compressed"))
{
error("You have uploaded a non-zip or non-rar file. Only upload zip or rarfiles under 200kb.");
}
When using some version of winrar, sometimes when they upload a RAR file they get the Error. It depends on the version of winrar they use.. this ofcourse is not right..
What i need is a way of being SURE that its a zip or rar file without it erroring on different versions..
Anyone?
Thanx..