I know, I know, this error seems like the classic newbie thing of
forgetting to put enctype="multipart/form-data" into the HTML form tag. But
I've done everything by the book, it's all based on code I've been using
for years. Only now I just get this error.

Here's the important bits of the HTML form:

------------------------------------------------
<form action="" method="post"
name="download_details" id="download_details" enctype="multipart/form-data"
> <input type="hidden" name="filepath_clientpath" id="filepath_clientpath"
value="" />
... snip ...
<tr>
<td><label for="" path</label></td>
<td><input type="file" name="filepath" id="filepath" size="30"
class="formInput" title="Use this to locate the document on your hard drive
for uploading" /></td>
</tr>
... snip ...
</form>
------------------------------------------------

I use the filepath_clientpath hidden field to validate the extension after
upload (filepath gets changed to a *.tmp) file. Can't see how that could
intefere, it's been working fine for years. The upload code is simple:

------------------------------------------------
<cffile action="" filefield="filepath"
destination="#variables.s_downloadsPath#" nameconflict="MAKEUNIQUE">
------------------------------------------------

And the error in full:

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

I'm on CF5 / WinXP Pro. Any ideas while I stare at my monitor and furrow my
brow?

Gyrus
[EMAIL PROTECTED]
http://norlonto.net/gyrus/dev/
PGP key available

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to