close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email 4 Not Uploading File

Thread began 4/28/2010 11:56 pm by dinohorn397192 | Last modified 5/01/2010 6:58 am by elevy388997 | 1238 views | 3 replies |

dinohorn397192

Universal Email 4 Not Uploading File

I tried to isolate the issue with the code below, but it's still not working. Any ideas why?

<?php require_once("../webassist/file_manipulation/helperphp.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "pawpics/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submitPhoto_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "photo", "2", "[NewFileName]_[Increment]", "false", $WA_UploadResult1_Params);
}
?>
<!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>Untitled Document</title>
</head><body>
<form action="upload.php" method="post" name="uploadForm" id="uploadForm" >
<input name="photo" id="photo" type="file" />
<input type="image" src="../img/s_add.png" name="submitPhoto" id="submitPhoto" />
</form>
<?php echo WA_DFP_AllUploadsDebug(); ?><br /><br /><br /><br />
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"]; ?>
</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

for a file to uplaod to the server, the forms encoding type must be set to multipart/form-data. your form tag should be:



<form action="upload.php" method="post" name="uploadForm" id="uploadForm" enctype="multipart/form-data" >

Sign in to reply to this post

dinohorn397192

It worked! I can't believe I didn't see that. Thank you very much!

Sign in to reply to this post

elevy388997Beta Tester

For another reference, maybe for the future, I was having problems having an attachment being sent to my email and it was because I had BOTH the UE attachment, and the File Uploader on. So I deleted the Upload File server behavior and it works fine, just no file is sent to my remote area. -Credit to Eric for figuring that out.

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