Help - Search - Members - Calendar
Full Version: upload to server
HTMLHelp Forums > Web Authoring > General Web Design
bunny1
Hi

I'm trying to allow a user to upload an image file to the server
below is the code i am using and i want the file to upload to /dreamweaver/upload folder on my server
this code is ot working
the error i get is -

Method Not Allowed
The requested method POST is not allowed for the URL /dreamweaver/cf_upload.cfm

also i have changed the security settings on the upload folder so i dont think that is the problem




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Upload File with ColdFusion</title>
</head>
<body>
<cfif isdefined("form.upload_now")>
<cffile action="upload" filefield="ul_path" destination="c:\inetpub\wwwroot\dreamweaver\upload\" accept="image/jpeg, image/gif" nameconflict="makeunique">
The file was successfully uploaded!
</cfif>

<form action="cf_upload.cfm" method="post" name="upload_form" enctype="multipart/form-data" id="upload_form">
<input type="file" name="ul_path" id="ul_path">
<input type="submit" name="upload_now" value="submit">
</form>
</body>
</html>

</body>
</html>


i would really appreciate any help

thanks
Brian Chandler
Trouble is, this is a ColdFusion question really, and I doubt if anyone here is an expert with it. You might get better luck searching for a CF forum...

(OTOH, see if anyone can answer...)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.