Apache configurations for HTTP PUTApache configurations for HTTP PUTHello.
While trying out the resume feature using HTTP PUT (via process.php), the upload process indicator went up 100% but came short with the error "Server error HTTP/1.1 403 Forbidden" on the applet window. No files appeared in the /upload folder. Using HTTP POST worked flawlessly (although resume not possible). I have got all the PARAMS correct (httpmethod is PUT) as in applet_http_resume.js and the correct configurations in process.php, so I suspect its in the webserver configuration. Apache by default has the PUT method disabled?? I have tried .htaccess with only "SCRIPT PUT /process.php" and put that .htaccess in a subfolder in the server. The following error appeared: "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request. etc etc". I'm sure i missed something. Can someone help with a simple configuration file (eg: .htaccess) where i can just put it in a subfolder where all the files are. Thanks for the help. Re: Apache configurations for HTTP PUT403 means forbidden. So the PUT request is not allowed. Do you have Apache 1 or Apache 2?
The HTTP PUT will be handled by PHP so you should also check that your PHP configuration allows HTTP PUT. Re: Apache configurations for HTTP PUTHello. Thanks for the reply.
The server I use is Apache 2.2.x, with PHP 5.x running. It is also a shared hosting. Is there anywhere to check if the default PHP configuration supports PUT and if not, any settings to enable it (eg: maybe in .htaccess or httpd.conf, etc)? Thanks for the help. Re: Apache configurations for HTTP PUTHello.
I've got the HTTP PUT to work. Add the following to the .htaccess. <Limit PUT DELETE> order deny,allow allow from all </Limit> Naturally this will post security risks, but at least the PUT method works now. Got another question, which is on uploading. When you upload individual files, you are able to use the "overwrite=false", and attempting to reupload the same files will result in nice warning on the applet window. However, when you upload a folder (or subfolders) with the same individual files inside, the overwrite=false doesn't seem to work but overwrite the entire same files again, eventhough they have been uploaded once. Fixing this will be on the server side scripting? Or need to tweak the applet params for this? Thanks again. Re: Apache configurations for HTTP PUTMmhh, no it should work too even with file in subfolder. Could you post your JavaScript here?
Are you using: <PARAM NAME="param4" VALUE="relativefilename"> <PARAM NAME="value4" VALUE="true"> <PARAM NAME="folderdepth" VALUE="-1">
|