Why do I keep getting "Method Not Allowed" for form POST requests?

Is the file you're trying to post to an HTML file, a text file or a CGI script? Which does the server think it is? If it's an HTML file that's a no-no. The server is not going to allow that.