close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

displaying upload Error message and Progress bar - DFP

Thread began 7/13/2012 12:53 am by s.joiner74419001 | Last modified 7/24/2012 7:38 am by Jason Byrnes | 1983 views | 5 replies |

s.joiner74419001

displaying upload Error message and Progress bar - DFP

I can not get an 'Upload successful' message to display nor can I get a progress bar to appear ( not sure if this only appears for large uploads! )

Here is my code!

<div id="upload_form_ProgressWrapper">
<form action="" method="post" enctype="multipart/form-data" id="upload_form" name="upload_form">
<label>Upload Form</label>
<input name="upload" type="file" id="upload" />
<br />
<input name="submit" type="submit" id="submit" />
</form>
</div>
</div>
<div id="upload_form_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('upload_form', 'upload_form_ProgressMessageWrapper', WADFP_Theme_Options['SmallSpin:Nautica']);
</script>
<div id="upload_form_ProgressMessage" >
<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/nautica-smallspin.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>
</div>
<?php if($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"] == 1) { ?>
Upload successful!
<?php } ?>

Can anyone help please!

Sign in to reply to this post

Jason ByrnesWebAssist

do you have a link where i can see this in a browser to troubleshoot?


also if you could send a copy of the page in a zip archive, that would be helpful.

Sign in to reply to this post

s.joiner74419001

displaying upload Error message and Progress bar - DFP

Hi, Here's a Link to the page I've put on my remote server. Plus I have attached the php file in a zip archive!

upload.php

Attached Files
upload.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

For the progress bar, your page is missing the following script line:

<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>




for the success message, to troubleshoot, open the bindings panel, and expand the WA Uploaded file Global Status, and add the debug info binding to your page.

Sign in to reply to this post

s.joiner74419001

displaying upload Error message and Progress bar - DFP

I have placed the missing script line in the page, of which I guessed where to put it as you didn't explain this. The progress bar now appears and gets stuck. I got this far by removing all code for the success message as I do not understand where this should be placed. I tried the debug info and it gave me a list of results of which mean nothing to me. It would be helpful if you could simply illustrate the order of code placement for both progress bar and success message for this to work as this is where I feel your set up guide fails to explain fully. below is my current block of code without success message

######################################################

<div id="content">
<div id="upload_form_ProgressWrapper">
<form action="" method="post" enctype="multipart/form-data" id="upload_form" name="upload_form">
<label>Upload Form</label>
<input name="upload" type="file" id="upload" />
<br />
<input name="submit" type="submit" id="submit" />
</form>
</div>
</div>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js"></script>
<div id="upload_form_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('upload_form', 'upload_form_ProgressMessageWrapper', WADFP_Theme_Options['SmallSpin:Nautica']);
</script>
<div id="upload_form_ProgressMessage" >
<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/nautica-smallspin.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>
</div>
</div>

#######################################################

Sign in to reply to this post

Jason ByrnesWebAssist

Well, the progress bar and success message cant really be used on the same page.

you should add a page redirect behavior to send the user to a another page after the logout has completed.

on the server behaviors panel, click the plus button, and select WebAssist -> Utilities -> Server Redirect, set the trigger to upload file successful.

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