1 Replies - 3598 Views - Last Post: 11 May 2012 - 06:55 AM Rate Topic: -----

#1 De.camm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 05-March 12

had error when uploading file

Posted 10 May 2012 - 11:44 PM

Hi, I tried to make a upload form using coldfusion code, but it give me an error, here I show the code:
<cfif isdefined("form.submit_upload")>
            <cffile action="UPLOAD" filefield="file_path" destination="C:\ColdFusion9\wwwroot\eFiling2\Apps\Transit\download" nameconflict="MAKEUNIQUE">
</cfif> 
<cfif not isDefined ("form.submit_upload")>
<table align="center">
	<tr>
    	<td>
        <br>
            <form action="uploadfile" method="POST" name="frmupload" enctype="multipart/form-data">
                <input type="file" name="file_path">
            	<br><br>
                <input type="submit" name="submit_upload" value="upload">
            </form>
        </td>
	</tr>
</table>
<cfelse>
<table align="center">
    <tr>
        <td align="center" valign="middle">
        <font size="20">File Uploaded!</font> <br>
        <a href="demoLetters">
        		<img src="go-back32.png" align="absmiddle" border="0" />
        </a>
        </td>
    </tr>
</table>
</cfif>


The error showing already capture, refer the attachment, the figure upload form also attach.
Anything have to change with my code?

Attached image(s)

  • Attached Image
  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: had error when uploading file

#2 Craig328  Icon User is offline

  • I make this look good
  • member icon

Reputation: 1947
  • View blog
  • Posts: 3,488
  • Joined: 13-January 08

Re: had error when uploading file

Posted 11 May 2012 - 06:55 AM

De.camm, it's a 404 error. Says right in the error message "FileNotFoundException". Look at your action attribute of your form tag to find the issue.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1