I have a type... it should be
document.forms[0].enctype
|-----Original Message-----
|From: Patricia Lee [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, February 28, 2001 1:27 PM
|To: CF-Talk
|Subject: RE: ENCTYPE="multipart/form-data" problem
|
|
|This is by no means an answer, but it could be a workaround.
|
|You can change the encoding with javascript. So what you
|could do is write
|a quick function that checks to see if the file field has
|value, and if it's
|empty, change the encoding back to normal
| document.forms[0].enctye = "application/x-www-form-urlencoded"
|
|As I said... it's not an explanation or a fix, but it should work as a
|workaround.
|
|Caveat: The above has only been tested on IE 5.x....
|
||-----Original Message-----
||From: Scott Lowe [mailto:[EMAIL PROTECTED]]
||Sent: Wednesday, February 28, 2001 10:43 AM
||To: CF-Talk
||Subject: ENCTYPE="multipart/form-data" problem
||
||
||I don't know if this is a CF problem yet, but I haven't been
||able to get to
||the bottom of it:
||
||The problem arises when using ENCTYPE="multipart/form-data" to
||allow the use
||of files in a form. It seems that if a file is present, then
||all is well.
||However if the file field is empty then none of the other form
||data (input
||type="text" etc.) are avalable to the processing page. You get
||the error
||"Error resolving parameter FORM.PRICE" or something similar.
||Removing the
||enctype parameter from the form cures the problem (but this
||disables the
||file capabilities).
||
||We are using: CF Enterprise 4.5.1, Windows 2000 ADV server /
||IIS 5, IE5.0
||(to submit the form).
||
||I guess the problem could be with any of these (of couse it
||could just be me
||doing something stupid).
||
||Anyway, if anyone has experienced the same problem or has an
||explaination I
||would be very grateful.
||
||Thanks,
||
||Scott.
||
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists