is this correct ?? ($_FILES['sql_file']['type'] == 'application/xls.ms-excel') i need to upload a file in xls format excel type and determine its type before uploading and i dont know the type to be used thx
Any of these. application/excel application/vnd.ms-excel application/x-excel application/x-msexcel BUT, do not rely on the MIME type in the ['type'], because this value is set by the user's browser and can be modified, and therefore can't be trusted. Use the extension for validation.