close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Script File Upload not working

Thread began 9/13/2009 8:10 am by dataworks388155 | Last modified 9/13/2009 2:59 pm by dataworks388155 | 1398 views | 2 replies |


Script File Upload not working


I tried a very simple form to upload an image, but it dosent work
Can you help me sort this out please?

here is the code

<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "Members/".$_SESSION['MM_Username'] ."",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
WA_DFP_UploadFiles("WA_UploadResult1", "logo", "0", "", "true", $WA_UploadResult1_Params);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>

<form action="" method="post" enctype="application/x-www-form-urlencoded" name="form1" id="form1">
<input type="file" name="logo" id="logo" />
<input type="submit" name="submit" id="submit" value="Submit" />

Sign in to reply to this post


Do you have any error messages you can share?

Also, I noticed that you are generating the folder name dynamically... which is ok but are you sure that the folder in that name exists AND does the folder have the correct permissions (777 or 755 depending on server policy)?

Best regards,


Sign in to reply to this post


That was it.


That was the problem. Changed permissions for the folder to allow read and write to it, and it is uploading now. Thanks

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





Ease of use


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