I'm using Apache Server 6. and i'm attempting to update personal files using ajax put request however the server is giving me error 405 Method Not Permitted. I'm working this on home windows. Can anybody assist me in the event that.

Thanks ahead of time.


I am presuming you're using apache tomcat (since you have pointed out version 6.)

For the reason that situation add this for your webapp's web.xml:

        <param-value>false</param-value> <!-- this will enable PUT for your app -->


You'll be able to test this like so, to upload the file (You'll need the curl program to check)

curl -T somefile.txt http://localhot:8080/<yourapp>/

If you wish to enable this globally, you may make exactly the same alternation in /conf/web.xml (for default servlet)