Menu
Hi,
I have the following code
$max_file_size = ‘500000’;
$valid_file_type = “application/zip”;
$this_file_size = $_FILES[‘userfile’][‘size’];
$this_file_type = $
if ($max_file_size >= $this_file_size && $valid_file_type == $this_file_type)
etc..
However, when i upload a zip file about 150kb which should be accepted, i’m given the error message that the file is not in zip format.
Anything wrong with the above?