Actually I copied the example incorrectly (it is Friday) they all have unique names. I've decided to copy the information into hidden form fields using JavaScript on submit. I then check to make sure there is data in both corresponding hidden and input fields. If there is data I finish the action.
-----Original Message----- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 2:29 PM To: CF-Talk Subject: RE: MAC fileupload question. I noticed that the 3 tmp files all have the same name if you only upload 1. So just check for the number of unique names. :-) Of course, this doesn't tell you which one they meant (if the three fields are for different things). :-( -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -----Original Message----- : From: Ryan Roskilly [mailto:[EMAIL PROTECTED] : Sent: Friday, July 18, 2003 11:23 AM : To: CF-Talk : Subject: MAC fileupload question. : : : When trying to upload images using fileupload PC IE and Mac IE pass : different values. I have 3 upload fields, lets say im just : uploading 1 image : this time. : : <INPUT type="file" name="ProductImage1" : accept="image/jpeg,image/jpeg,image/gif"> : <INPUT type="file" name="ProductImage1tn" : accept="image/jpeg,image/jpeg,image/gif"> : <INPUT type="file" name="ProductImage1zm" : accept="image/jpeg,image/jpeg,image/gif"> : : : On a PC with IE 6.0 : : What is passed is: : : FORM.PRODUCTIMAGE1= : FORM.PRODUCTIMAGE1TN=C:\WINNT\TEMP\ACF634C.tmp : FORM.PRODUCTIMAGE1ZM= : : : On a Mac with IE 5.x I get the following. Even though only 1 image has : really been uploaded. : : FORM.PRODUCTIMAGE1=C:\WINNT\TEMP\ACF5EB5.tmp : FORM.PRODUCTIMAGE1TN=C:\WINNT\TEMP\ACF5EB5.tmp : FORM.PRODUCTIMAGE1ZM=C:\WINNT\TEMP\ACF5EB5.tmp : : : Usually you could just check to make sure there is a length such as <cfif : len(trim(form.productImage)> : But this will result in true for the Mac. : : And of course when you try and <cffile action="upload"..... the : image is not : there so it crashes. : : Any ideas on how to on how to gracefullly prevent this? : : : Thanks : Ryan : : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

