close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot upload files with forms created by CSS Form Builder

Thread began 5/23/2010 3:30 pm by robert.andrews394135 | Last modified 5/25/2010 4:38 pm by Jimmy Wu | 1668 views | 5 replies |

robert.andrews394135

Cannot upload files with forms created by CSS Form Builder

Hi,

I am not sure whether this is a CSS Form Builder or Universal Email 4 problem.

I tried creating a contact form using CSS Form Builder and Universal Email 4 with a file field so a person could attach a file when filling in the contact form. However, I could not get it work correctly. Without the file field the form is correctly sent, however with the file field after clicking the submit button the contents of the form are redisplayed with the file field name blank.

As a test I created a form in CSS Form Builder which just has a File field. I then added the file manipulation upload behavior to the submit button. When I click submit the file field goes blank and I get a 'please select file' error message. No file is uploaded.

If i create the same form manually (not using CSS Form Builder) and add the file upload behavior the file uploads correctly.

Any help would be greatly appreciated.

Kind Regards
Robert Andrews

Sign in to reply to this post

Jimmy Wu

I just tested and was able to create a form using CSS Form Builder and upload a file using Universal Email 4 with that form. Can you zip up and attach your form pages and upload behavior to your next response? Also, do you have the page on a hosted server so you can send me a url as well?

Sign in to reply to this post

robert.andrews394135

Files as requested

Hi Jimmy,

Attached are files from web site as requested.

I have tested this with both IIS and Apache running on windows., and a shared Linux host with no success.

Used both Firefox 3.6 and IE8 for testing.

Kind Regards
Robert Andrews

Attached Files
wa.zip
Sign in to reply to this post

Jimmy Wu

It looks like the required validation for the file field is the issue. You want to find the line of code that looks like this:
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Filename"])?$_POST["fieldset_group_Filename"]:"") . "",true,1);

And modify it to look like this:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["fieldset_group_Filename"]["name"])?$_FILES["fieldset_group_Filename"]["name"]:"") . "",true,1);

This will validate the file field correctly and upload the file as well. Sorry for the inconvenience this has caused. I'll log a bug for this, but for now you will have to make that change manually.

Sign in to reply to this post

robert.andrews394135

Thank you. Works well.

Much appreciated.

Cheers
Robert Andrews

Sign in to reply to this post

Jimmy Wu

Great to hear it. If you run into any additional issues, feel free to open a new thread.

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