non sò quale protrebbe essere il problema
per conoscere qualcosa in più puoi analizzare la variabile
$_FILE['upfile']['error'] in questo modo
l'array error si articola cosìCodice PHP:switch ($_FILE['upfile']['error'])
{
case 0:
$msg = "No Error"; // comment this out if you don't want a message to appear on success.
break;
case 1:
$msg = "The file is bigger than this PHP installation allows";
break;
case 2:
$msg = "The file is bigger than this form allows";
break;
case 3:
$msg = "Only part of the file was uploaded";
break;
case 4:
$msg = "No file was uploaded";
break;
case 6:
$msg = "Missing a temporary folder";
break;
case 7:
$msg = "Failed to write file to disk";
break;
case 8:
$msg = "File upload stopped by extension";
break;
default:
$msg = "unknown error ".$_FILES['Filedata']['error'];
break;
}
If ($msg)
$stringData = "Error: ".$_FILE['upfile']['error']." Error Info: ".$msg;
else
$stringData = "1"; // This is required for onComplete to fire on Mac OSX
echo $stringData;
in questo modo saprai qualcosina in più e magari puoi capire come intervenirecodice:<? array( 0=>"There is no error, the file uploaded with success", 1=>"The uploaded file exceeds the upload_max_filesize directive in php.ini", 2=>"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" 3=>"The uploaded file was only partially uploaded", 4=>"No file was uploaded", 6=>"Missing a temporary folder" ); ?>

Rispondi quotando