My Page:
u1.php
My Code:
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php require_once("WA_SecurityAssist/WA_RandomPassword.php"); ?>
<?php
if (!session_id()) session_start();
if(isset($_POST["button"])) {
$_SESSION["ImageName"] = "".WA_RandomPassword(10, true, true, true, "") ."";
}?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "load/",
'FileName' => "Original_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "400",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_to_box_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "150",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1_3 Start
$WA_UploadResult1_Params["WA_UploadResult1_3"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_width_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "250",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_3 End
// WA_UploadResult1_4 Start
$WA_UploadResult1_Params["WA_UploadResult1_4"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_height_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "3",
'ResizeWidth' => "120",
'ResizeHeight' => "250",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_4 End
// WA_UploadResult1_5 Start
$WA_UploadResult1_Params["WA_UploadResult1_5"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_width_height_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "95",
'ResizeHeight' => "95",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_5 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult1", "image", "0", "", "JPG:100", $WA_UploadResult1_Params);
}
?>
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Upload</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="FormUpload" id="FormUpload">
<p>Bild:
<input type="file" name="image" id="image" />
</p>
<p>
<input type="submit" name="button" id="button" value="Hochladen" />
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"]; ?></p>
</form>
</body>
</html>
This is the Error in both iE7 and FF3013:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, service@webmailer.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
In my upload folder there are files like :
f85aea00068c176aafe1b2b62bb42bfa_tmp.JPG
550deb964bb5f0fa1582c54f636bca51.JPG
The test-image is 2,75 MB big.
Denis