close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

HTTP 500 error

Thread began 9/01/2009 9:36 am by meister281653 | Last modified 9/08/2009 1:35 pm by meister281653 | 2328 views | 5 replies

meister281653

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...