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

Setting the size of file to upload

Thread began 12/30/2012 7:00 pm by thehalpeen319342 | Last modified 1/04/2013 2:40 pm by thehalpeen319342 | 1822 views | 26 replies

Jason ByrnesWebAssist

  There is one little bug in Chrome and Firefox. If a user tries to upload a photo over the limit size - they get the validation message. If they hit cancel, they are brought back to another page and if they attempt to retry to add a member including a photo, the validation message is still displayed - see screenshot attached.  

this is not a bug, the validation failure is stored in a session, the session will not be cleared until the form submits correctly.

if you look at the code for the validation, you will see a line that sets the session. for example on the update page you sent, it looks like this:

$_SESSION['WAVT_updatemember_Errors'] = "";

the session name will change based on the page name.

you can add code after the </html> tag to clear the session if you like, for example:

<?php if(isset($_SESSION['WAVT_updatemember_Errors'])) unset($_SESSION['WAVT_updatemember_Errors']); ?>

  Also on the Update_member.php page I've entered in the exact same upload validation details. It won't upload files larger than 512kb (correct) - but no validation message is appearing. The validation message appears in the add_member.php, which we sorted last night, but not in this update/edit page - see attached zip.  

it looks to me like you copied the validation show if code from the add member page to the update member page. The validation show if code cannot be copied from one page to another. the validation show if code is unique to each page. you need to apply the validation show behavior manually rather than copying the code.

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