Submit ColdFusion form with data and input type=file

I have a html coldfusion data entry form in a coldbox framework and using jQuery instead of javascript. I submit the form with many input fields along with an input type=file. The form tag  has  enctype="multipart/form-data" method=”post”. The form will not submit.
No errors come up when I click submit (but the jQuery does run), it just will not submit the form or go into the cffunction. When I remove the type=file from the form and the enctype="multipart/form-data" from the form tag, the form submits.
Is there a plugin in for coldbox that I am missing or is there a jQuery function that I need to add?
Thank you very much
briankamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZvonkoSystems architectCommented:
You CANNOT do submit by script when you use file uploads.
Otherwise you could upload my creditcard.,txt and my password.txt to your server.
Upload is allowed ONLY manualy by user click on submit button and not by script.

And do not tell me that Google is able to do it. I know...
briankamAuthor Commented:
Thanks Zvonko, but we are submitting the form with a Submit button on the form. It contains both data entry fields and file attachments. We're using the jQuery to validate the data entry and file extensions. Do you know how to call the CFFunction to upload files as well store data fields using the CFFile?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hammo777Commented:
To upload the file use this in the page your form submits to:
<CfFile Action="UPLOAD" FileField="fname"      NameConflict="overwrite" Destination="#destination#">
where fname is the name of the formfield with type=file.

As for the form not submitting via the submit button, are you sure you aren't getting any JS errors?  Have you tried using Firefox with the Firebug addon to test it for errors.

Can you post your code for the form page?
ZvonkoSystems architectCommented:
CFFile and CFFunction are both server side actions AFTER the form submit was initiated.

It is not possible to SET the value of file field.
I assume that some file field checking script has some access or syntax errors and therefore the onSubmit return code is false and the submit action is blocked.

Is you page accessible online?
briankamAuthor Commented:
This comment led us to debug our problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.