0 Replies Latest reply on Nov 27, 2006 8:10 AM by spikehenning

    Get Uploaded File Mime Type and Client Filename

      Anyone know how to recover an uploaded file MIME type and client file name?

      I'm writing my own cfx tag to process file uploads and pretty much have it figured out except to determine the name of the client file and mime type. The formfield file variable value contains the path/filename to the CF temp directory, but I need the MIME type, filename, etc. that is contained int he HTTP Header
      (e.g. Content-Disposition: form-data; name="Image"; filename="C:\test.JPG"
      Content-Type: image/pjpeg
      [empty line])

      I'm using the getHttpRequestData() functiont, but it only gives me the content-type multipart/form-data, leaving out the Mime type and Content-Disposition (which contains the client file name).