Title: RE: [KCFusion] Uploading file from Web form
I would also try checking all of these other cfcatch variables for more info

You can use the cfcatch variable to access exception information:

  • Type -- Exception type, as specified in cfcatch.
  • Message -- The exception's diagnostic message, if one was provided. If no diagnostic message is available, this is an empty string.
  • Detail -- A detailed message from the CFML interpreter. This message, which contains HTML formatting, can help determine which tag threw the exception.
  • TagContext -- The tag stack: the name and position of each tag in the tag stack, and the full path names of the files that contain the tags in the tag stack. See the note that follows this list for more information.
  • NativeErrorCode -- TYPE=Database only. The native error code associated with this exception. Database drivers typically provide error codes to assist diagnosis of failing database operations. If no error code was provided, the value of NativeErrorCode is -1.
  • SQLSTATE -- TYPE=Database only. The SQLState associated with this exception. Database drivers typically provide error codes to assist diagnosis of failing database operations. If no SQLState value was provided, the value of SQLSTATE is -1.
  • ErrNumber -- TYPE=Expression only. Internal expression error number.
  • MissingFileName -- TYPE=MissingInclude only. Name of the file that could not be included.
  • LockName -- TYPE=Lock only. The name of the affected lock (set to anonymous if the lock was unnamed).
  • LockOperation -- TYPE=Lock only. The operation that failed (set to Timeout, Create Mutex, or Unknown).
  • ErrorCode -- TYPE=Custom type only. A string error code.
  • ExtendedInfo -- TYPE=APPLICATION and custom only. A custom error message.
-----Original Message-----
From: Dunwiddie, Bruce [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:09 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [KCFusion] Uploading file from Web form

sounds to me like a permissions issue with saving a file to that directory.

-----Original Message-----
From: Keith Purtell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 26, 2003 2:02 PM
To: KCFusion (E-mail)
Subject: [KCFusion] Uploading file from Web form


A function I've used many times before isn't working, and I'm not sure what the problem is. We have
a Web form allowing users to upload files to our Web server. Using the standard field format ...
<FORM action="" method="post" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="FileName" SIZE="45">
( other fields, submit button, etc. )

and at the receiving end is more standard format ...
<CFTRY>
  <CFFILE ACTION=""
  FILEFIELD="FileName"
  DESTINATION="C:\path_here"
  NAMECONFLICT="OVERWRITE">
<CFCATCH TYPE="Any">
  <CFOUTPUT>#CFCATCH.message#</CFOUTPUT>
</CFCATCH>
</CFTRY>

This worked before but this time the file never gets to its final destination. I wasn't even getting
error messages until I inserted some diagnostic code (CFFILE.AttemptedServerFile, CFFILE.ClientFile,
etc). Every one of the diagnostics came up empty; no value at all. The CF server debug output says
all my form fields are there, and even shows me the location where it stores my upload file in a
temp directory. So the file seems to upload to the server but fail after that. I tried tinkering
with the destination path but no luck. What am I missing?


Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original message.

---
[This E-mail scanned for viruses by Declude Virus]

 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/[EMAIL PROTECTED]
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to