I'm trying to create a form that will be emailed, but I want it to have the capability to browse and attach a file to the email. Is that possible? Can someone point me in the right direction to learn how to do this.
First thing you'd need to do is add a file dialog, which is more HTML than cold fusion. Then once you submit the page, you take the contents of the file dialog, and use CFFILE to upload that file, then save it to your server somewhere. You have to pick a plethora of options, like how to handle existing filenames, etc, but thats basically how you would do something like that.
Also make sure that your form tag has the follow attribute:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.