Skip to main content
Inspiring
April 19, 2006
Answered

CFFORM/CFINPUT Type = File Problem

  • April 19, 2006
  • 1 reply
  • 878 views
Hello everyone-
I'm trying to use a CFINPUT/FILE field in a CFFORM:

<CFINPUT TYPE="file" NAME="scanArticleLocation" class="sans9">

Clicking on the Browse button appears to populate the text input box with a valid path, but when the field "scanArticleLocation" is passed on by the form, I get this:

<INPUT TYPE="hidden" NAME="ScanArticleLocation" VALUE="C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp12527.tmp">

Wether I click on the form's "Browse" button to specify the file's path, or manually enter it, the result is the same (only the .tmp file name changes). Anyone ever come across this one?

Thanks in advance...

- Tom Tedeschi
    This topic has been closed for replies.
    Correct answer ttedeschi
    It appears that the problem was in the CFFORM tag itself. I originally had specified that it be multi-part:

    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm" enctype="multipart/form-data" METHOD="POST">

    When I removed the enctype parameter, it worked fine:

    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm" METHOD="POST">

    - TRT

    1 reply

    ttedeschiAuthorCorrect answer
    Inspiring
    April 20, 2006
    It appears that the problem was in the CFFORM tag itself. I originally had specified that it be multi-part:

    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm" enctype="multipart/form-data" METHOD="POST">

    When I removed the enctype parameter, it worked fine:

    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm" METHOD="POST">

    - TRT