Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    92
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    No post

    The error suggests that cf_upload.cfm can't deal with post data, as is discussed here: Upload Page Error; it seems to be a host support issue.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •