Ciao! 
Non so se qualcuno di voi ha mai usato Uploadify, ma spero proprio di sì!
Ho provato a dare uno sguardo anche ai forum in inglese, ma non trovo soluzioni al mio problema! 
Intano, questo è il codice della prima pagina:
codice HTML:
<!--UPLOADIFY--><link href="cms.css" rel="stylesheet" type="text/css" /><link href="uploadify/uploadify.css" type="text/css" rel="stylesheet" /><script type="text/javascript" src="uploadify/jquery-1.4.2.min.js"></script><script type="text/javascript" src="uploadify/swfobject.js"></script><script type="text/javascript" src="uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">$(document).ready(function() { $('#file_upload').uploadify({ 'uploader' : 'uploadify/uploadify.swf', 'script' : 'uploadify/uploadify.php?id=<?php echo $idFoto?>', 'cancelImg' : 'uploadify/cancel.png', 'folder' : 'foto/', 'auto' : true, 'multi' : true, 'removeCompleted' : false, 'queueID' : 'queue_gallery', 'queueSizeLimit' : 10, 'fileSizeLimit' : '7MB','sizeLimit': 70971520, 'onSelectOnce' : function(event,data) { $('#status-message').text(data.filesSelected + ' files have been added to the queue.');}, 'onAllComplete' : function(event,data) { $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');}, 'onError' : function(event, ID, fileObj, errorObj) { alert(errorObj.type+"::"+errorObj.info); }
});});</script><!--FINE-->
Questo quello della seconda:
Codice PHP:
$id=$_REQUEST['id'];
if (!empty($_FILES)){ $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; $targetFile = str_replace('//','/',$targetPath) . $_FILES['Filedata']['name']; move_uploaded_file($tempFile,$targetFile); echo "1";
list($width, $height, $type, $attr) = getimagesize($targetFile);
$ext=image_type_to_mime_type ($type); $i = strrpos($ext,"/"); if (!$i) { return ""; } $l = strlen($ext) - $i; $ext = substr($ext,$i+1,$l);
$imgsize = getimagesize($targetFile);switch(strtolower(substr($targetFile, -3))){ case "jpg": $image = imagecreatefromjpeg($targetFile); break; case "png": $image = imagecreatefrompng($targetFile); break; case "gif": $image = imagecreatefromgif($targetFile); break; default: exit; break; }$width = $width; //New width of image$height = $height; //This maintains proportions
$width_p = 800; //New width of image$height_p = $imgsize[1]/$imgsize[0]*$width_p; //No proportions
$src_w = $imgsize[0];$src_h = $imgsize[1];
$picture = imagecreatetruecolor($width, $height);$picture_p = imagecreatetruecolor($width_p, $height_p);
imagealphablending($picture, false);imagealphablending($picture_p, false);imagesavealpha($picture, true);imagesavealpha($picture_p, true);
$rand = rand(1111, 9999);
$namefile = $id . "_img_". date("YmdHis") ."_". $rand;$namefile_p = "p_" . $id . "_img_". date("YmdHis") ."_". $rand;
$bool = imagecopyresampled($picture, $image, 0, 0, 0, 0, $width, $height, $src_w, $src_h);$bool_p = imagecopyresampled($picture_p, $image, 0, 0, 0, 0, $width_p, $height_p, $src_w, $src_h);
$percorso = "../foto/";
if($bool){ switch(strtolower(substr($targetFile, -3))){ case "jpg": header("Content-Type: image/jpeg"); $bool2 = imagejpeg($picture,$targetPath.$percorso.$namefile.".".$ext,80); break; case "png": header("Content-Type: image/png"); $bool2 = imagepng($picture,$targetPath.$percorso.$namefile.".".$ext); break; case "gif": header("Content-Type: image/gif"); $bool2 = imagegif($picture,$targetPath.$percorso.$namefile.".".$ext); break; }}if($bool_p){ switch(strtolower(substr($targetFile, -3))){ case "jpg": header("Content-Type: image/jpeg"); $bool2_p = imagejpeg($picture_p,$targetPath.$percorso.$namefile_p.".".$ext,80); break; case "png": header("Content-Type: image/png"); $bool2_p = imagepng($picture_p,$targetPath.$percorso.$namefile_p.".".$ext); break; case "gif": header("Content-Type: image/gif"); $bool2_p = imagegif($picture_p,$targetPath.$percorso.$namefile_p.".".$ext); break; }}$img_max = $namefile.".".$ext;$img_p = $namefile_p.".".$ext;
unlink($targetFile); }imagedestroy($picture);imagedestroy($image);imagedestroy($picture_p);
Riesco a inviare file di max 2Mb. Se superano i 2Mb, mi vengono salvati in mysql come .octet-stream e ovviamente nella cartella non c'è nulla.
Ho controllato anche il file php.ini, ma i limiti sono al di sopra dei 10 mb e dei 2 minuti di tempo.
L'upload lo sto provando in locale con xampp.
Qualcuno sa aiutarmi?