close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update Page not Working

Thread began 9/08/2009 10:57 am by Daryl | Last modified 9/10/2009 10:39 am by Jason Byrnes | 3023 views | 3 replies |

DarylBeta Tester

Update Page not Working

I have added DFP to a DA Update Page. I have followed the Video and have printed out the pdf and have checked double checked, deleted behaviours and reinserted them again, all with no luck.

The text in the form is updated, however no file is uploaded and no file name is added to the DB.

I get the following error report only;

  Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded  



The page is attached below.

Thanks in advance

Attached Files
Unit_Update(2).zip
Sign in to reply to this post

Jason ByrnesWebAssist

I see an incorrect entry in the code for the file field.

double click the upload file server behavior. On the First step, select the unit_logo form element from the File Field drop down. Do not click the lightning bolt, instead,l click the downward triangle to expand the select list and select the unit_logo element.

Sign in to reply to this post

DarylBeta Tester

OK, so my update page updates if I add a file to be updated, however if I dont select a new file, it deletes the entry from the database!

I understand that I need to bind the hidden form field to the actual form field by selecting the hidden form as the default file.

When I open the wizard via the behaviour that option is always empty even though I have selected it every time!

Should the entry by the hidden field name

  [logo_upload_hidden]  



or a long string instead?

php:
<?php echo((isset($_POST["logo_upload_hidden"]))?$_POST["logo_upload_hidden"]:""?>



Should it be in the DFP code?

php:
<?php

WA_DFP_SetupUploadStatusStruct
("WA_UploadResult1");
if(isset(
$_POST["Update_x"])){
    
WA_DFP_UploadFiles("WA_UploadResult1""unit_logo""2""[NewFileName]_[Increment]""PNG:5"$WA_UploadResult1_Params);
}
?>
Sign in to reply to this post

Jason ByrnesWebAssist

It should be the linger string:

php:
<?php echo((isset($_POST["logo_upload_hidden"]))?$_POST["logo_upload_hidden"]:""?>





After binding the hidden form element to the default file, select the one of the other input boxes such as file name before hitting the OK button to force the change to stick.

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