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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to