RE: Mac form submission file upload
I don't know if this is related to your problem, but I noticed that on the MAC, if you have a file upload field and that you don't select a file to upload (field supposely empty), the MAC doesn't see the field as empty, thus forcing you to trap the error in the cffile as cfif form.filefield neq won't work on the MAC. Vincent -Message d'origine- De : Valerie L. Criswell [mailto:[EMAIL PROTECTED]] Envoyé : Tuesday, June 11, 2002 4:06 PM À : CF-Talk Objet : Mac form submission file upload I must admit, I'm stupified (okay, maybe just stupid) by this problem. I've been beating my head on my desk for a good long while trying to solve this same problem. I've browsed the Macromedia CF Forum and TEK TIPS forum and found quite a bit of info on this subject. However, I've tried the TRIM() thing on all received form fields, but now my PC upload isn't working. I've seen a few other tidbits of stuff to try, but before I waste any time trying those, does anyone have a definitive solution in their pocket for this silliness? Here's the deal. Without the TRIM(), my entire form (which contains an upload field and is enctype multipart/form-data) works perfectly on the PC, but the Mac just totally ignores my form submission. No errors, just a clean blank page. If I use the TRIM(), the form works on the PC until I put a file in the file input (for upload). Thus, I'm in a catch22 atm. TIA to anyone with any advice. I'm just aching to get this done so I can check out of here and go on vacation! ~Val - Original Message - From: Michael Dorr [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 10, 2002 4:58 PM Subject: RE: MAC file upload Just worked through this problem about a month ago. The enctype=multipart/form-data on IE 5.0 does a strange thing - it inserts a blank space at the end of every single form input inside the form. Major pain. Anyway, on the receiving end, you need to Trim() your form variables, especially from input type=file. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Mac form submission file upload
Using a little JS, you could assign the value of the file field into another field in the submission template and test that value for eq in the action template. -Original Message- From: Axiomatique (Vincent) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:21 AM To: CF-Talk Subject: RE: Mac form submission file upload I don't know if this is related to your problem, but I noticed that on the MAC, if you have a file upload field and that you don't select a file to upload (field supposely empty), the MAC doesn't see the field as empty, thus forcing you to trap the error in the cffile as cfif form.filefield neq won't work on the MAC. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Mac form submission file upload
Yep ! Good point ! Vincent -Message d'origine- De : Lon Lentz [mailto:[EMAIL PROTECTED]] Envoyé : Tuesday, June 11, 2002 4:51 PM À : CF-Talk Objet : RE: Mac form submission file upload Using a little JS, you could assign the value of the file field into another field in the submission template and test that value for eq in the action template. -Original Message- From: Axiomatique (Vincent) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:21 AM To: CF-Talk Subject: RE: Mac form submission file upload I don't know if this is related to your problem, but I noticed that on the MAC, if you have a file upload field and that you don't select a file to upload (field supposely empty), the MAC doesn't see the field as empty, thus forcing you to trap the error in the cffile as cfif form.filefield neq won't work on the MAC. __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Mac form submission file upload
Forms on a mac can put extra whitespace into fields, so when testing for no value, it is best to use cfif Len(Trim(form.filefield)) Lon Lentz [EMAIL PROTECTED] 06/11/02 10:50AM Using a little JS, you could assign the value of the file field into another field in the submission template and test that value for eq in the action template. -Original Message- From: Axiomatique (Vincent) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:21 AM To: CF-Talk Subject: RE: Mac form submission file upload I don't know if this is related to your problem, but I noticed that on the MAC, if you have a file upload field and that you don't select a file to upload (field supposely empty), the MAC doesn't see the field as empty, thus forcing you to trap the error in the cffile as cfif form.filefield neq won't work on the MAC. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists