Error 405 with PUT method, Error 404 with POST

Upload core product.
Post Reply
deadlock
Posts: 3
Joined: Sat Jun 20, 2009 2:43 pm

Error 405 with PUT method, Error 404 with POST

Post by deadlock »

Hi,

I was using JFU with PHP successfully, but today I transferred everything to a new server.

Now, for some reason, I got a "405 Method Not Allowed" error within the applet when I use the settings I used in the old server (HTTP PUT), and if I revert back to POST (I remove the httpmethod param), I get a "404 File Not Found" error. These errors come after attempting to retry the upload four or five times.

Circumstances:

1) Both servers are Linux/Apache/PHP.
2) PHP max upload is 200M and $max_size in JFU PHP is 100M
3) File trying to upload is only 40k
4) Didn't change any config or paths when I moved over to the new server
5) Path for files is CHMOD 777, so permissions not an issue

What is the problem here?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error 405 with PUT method, Error 404 with POST

Post by support »

Can you try process.php directly from your browser ?
http://yourserver.com/something/process.php
Try to select a file from the HTML form and upload, does it work ?

deadlock
Posts: 3
Joined: Sat Jun 20, 2009 2:43 pm

Re: Error 405 with PUT method, Error 404 with POST

Post by deadlock »

Yes, using the PHP file standalone works fine. Any ideas?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error 405 with PUT method, Error 404 with POST

Post by support »

Double check that "url" parameter is the same you've used in browser for testing.

deadlock
Posts: 3
Joined: Sat Jun 20, 2009 2:43 pm

Re: Error 405 with PUT method, Error 404 with POST

Post by deadlock »

Sigh.

Sometimes the simplest solutions are the most obvious.

You were right. It was staring me right in the face but I didn't spot it! Sheesh.

Thanks a lot. :oops:

Post Reply