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>
The error suggests that cf_upload.cfm can't deal with post data, as is discussed here: Upload Page Error (http://www.bluehostforum.com/archive/index.php/t-3940.html); it seems to be a host support issue.