I'm trying to upload zipped jpg files, using a upload scrict that works, but in this case, and only this case with zipped jpg it does not work!! I've tryed to zip something else, and that works.
here is the script:
<?
//require_once("zip.lib.php");
if(!$_POST['submit'])
{
?>
<table border=0>
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="submit" value="1">
<input type="hidden" name="MAX_FILE_SIZE" value="100000000">
<tr>
<td>Veldu mynd:</td><td> <input name="photo" type="file"></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Senda">
</td>
</tr>
</table>
</form>
<?
}
else
{
$file = $_FILES['photo']['tmp_name'];
$file_name = $_FILES['photo']['name'];
$file_size = $_FILES['photo']['size'];
$file_type = $_FILES['photo']['type'];
$file_error = $_FILES['photo']['error'];
$slod = 'zip/'.$file_name.'.zip';
move_uploaded_file($file,$slod);
print_r( $_FILES['photo'] );
}
?>