Thank You, cfUniForm...

Posted on June 13, 2012 at 9:13 PM in ColdFusion, Uni-Form Tag Library, jQuery

This probably comes as no surprise, but it has been many years since I have written a form without the aid of cfUniForm. Today, however, I had a need to throw together a ridiculously quick and simple upload form on a project that only has this one form on it. Hardly enough to warrant adding cfUniForm into the mix. Or so it seemed.

So I create the form (just an upload field), and load it up in the browser so I can test it. Everything works beautifully, until I hit submit. The controller throws a nice, juicy exception telling me that the form field either doesn't exist or is empty.

WHAT?!?!?!?!

So off to The Google I went, but came up with only a bunch of rabbit trails that were all way off the beaten path. I looked at the form markup and related jQuery what seemed like a thousand times, and then (on the 1,001th time, no doubt) I spotted it and instantly felt like a 1994 interwebs n00b all over again:

  1. <form action="/doUpload" method="post">

At that moment, I *knew* that I must write my first blog entry in what seems like forever so as to express my sincere gratitude. Thank you, cfUniForm, for allowing me the privilege all these years to not waste memory bank space for stupid shit like `enctype="multipart/form-data"`. I <3 you, cfUniForm. I truly do.

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

April 2024
S M T W T F S
« Mar  
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

Subscribe

Enter a valid email address.

The Obligatory Wish List