|
upload to the server
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
|