In my project , there is a possibility to download/upload a backup of the project (with some configuration/images etc etc).
I have to accept only backups in .zip format (for the upload) , for this i used this code for check the format (client side and server side)
client side , with jQuery form
var ftype=$('#FileInput')[0].files[0].type;
switch(ftype){
      case 'multipart/x-zip':
      break;
      case 'application/zip':
      break;
      case 'application/x-zip-compressed':
      break;
      case 'application/x-zip':
      break;
      default: .... //error type
}
server side
switch(strtolower($_FILES['FileInput']['type'])){
      case  'multipart/x-zip':
      break;
      case  'application/zip':
      break;
      case  'application/x-zip-compressed':
      break;
      case  'application/x-zip':
      break; 
     default: exit("1");
 }
Every O.S has a different manner to recognize a .zip file (in fact in the switch there isn't the application/octet-stream case , and for this i decided to ask about this because a user tell me this problem).
So , the question is : where i can find a doc about this , or something where i can find a list of the various manner in which the O.S recognize a .zip file. thanks