close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect does not work!

Thread began 10/01/2009 1:44 pm by Cologne | Last modified 10/09/2009 2:46 pm by Cologne | 2569 views | 6 replies |

Cologne

Redirect does not work!

Hi,

the WA Server Redirect does not work!

<?php require_once("../../WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "Images/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "400",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult1", "image", "0", "", "JPG:80", $WA_UploadResult1_Params);
}?>
<?php
if($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"] == 1){
$WA_Redirect_URL = "Test/Upload/Upload2.php";
$WA_Redirect_KeepQS = false;
if ($WA_Redirect_URL != "") {
if ($WA_Redirect_KeepQS && $WA_Redirect_URL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "") {
$WA_Redirect_URL .= ((strpos($WA_Redirect_URL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_Redirect_URL);
}
}
?>
<!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=utf-8" />
<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="Bild hochladen!" />
</p>
</form>
</body>
</html>



My redirection is: $WA_Redirect_URL = "Test/Upload/Upload2.php";

But when it comes to the redirection the browser goes to: Test/Upload/Test/Upload/Upload2.php

The adresse doubles!!!

Please fix that error.

Thanks

Denis

Sign in to reply to this post

Jason ByrnesWebAssist

is the upload page in the test/upload folder?

Upload.php


If that is the case, then set the redirect to:
$WA_Redirect_URL = "Upload2.php";


The redirect is a relative link. If the two pages are in the same directory, there is no need to add the folder information.

Sign in to reply to this post

Cologne

Hi Jason,

I dont do it manually. I choose the page with the folder button, nothing else.

Upload1.php is the upload page. and both are in the same folders: Test/Upload/

So there must be an error in the WA Server Redirect, cause I picked it with the folderbutton :-)

The thing is, when I hit the button it starts in the root folder. maybe thats the error.

Denis

Sign in to reply to this post

Cologne

it seems the FILE-PICKEr doesn not work right. now I see that its always taken from the ROOT.

thats not so good :-(

Sign in to reply to this post

Cologne

Jason,

is it on the LIST to be fixed?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this.

To view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

Cologne

Oh Hi Jason,

you can close the ticket, I gonna change manually.

thanks for the ticket,
Denis

Sign in to reply to this post

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...