Momentan frag ich den Mime-Typ der Zip-Dateien mit...
PHP Code:
$_FILES['file']['type'] == 'application/x-zip-compressed' || $_FILES['file']['type'] == 'application/zip'
![Wink](https://www.php-resource.de/forum/core/images/smilies/wink.gif)
regards
Smiller
$_FILES['file']['type'] == 'application/x-zip-compressed' || $_FILES['file']['type'] == 'application/zip'
if(isset($_POST['upload']))
{
$tmp_name = $_FILES['image']['tmp_name'];
$mime = getimagesize($tmp_name);
if($mime['mime'] == "image/jpg")
{
...
$_FILES
getimagesize();
getsize() ?
EDIT:
@derHund
Welche Probleme könnte ich mit browsern bekommen?
if(($_FILES['image']['type']) == "image/pjpeg")
<?php
mkdir("/offetest", 0777);
?>
Leave a comment: