could the maxlength attribute be truncating the file path??

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

  ----- Original Message -----
  From: Jim McAtee
  To: CF-Talk
  Sent: Tuesday, July 20, 2004 12:06 PM
  Subject: CFFile upload problem

  CF5.  I'm having a bit of a time using cffile action="" used it
  in the past with no problems, but for some reason...

  I've got a large form containing an input field of type="file".

  <form name="myform action="" method="post"
        enctype="multipart/form-data">
  <input type="file" name="premphoto" size=50 maxlength=100>
  ...
  </form>

  In the action template, I have

  <cffile action="">           filefield="premphoto"
          accept="image/jpg,image/gif"
          destination="D:\web\prem\"
          nameconflict="overwrite">

  The error I get is:

  Error in CFFILE tag
  The form field specified in the CFFILE tag (PREMPHOTO) does not contain an
  uploaded file. Please be sure that you have specified the correct form
  field name.

  So, what am I doing wrong, or how to debug?

  A couple other questions:

  Can I have more than a single input field of type="file" on a form?

  Since the file upload isn't required, what is the best way to test for the
  existance of an uploaded file before doing the <cffile action="">   Will the test Len(form.premphoto) tell me if a file has been uploaded?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to