Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file upload causing Method not allowed

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
Hi all

I have a mystery here... In my cgi app i have a working file upload form.
Code:
<h3 align=center><br/>Browse for a document on your computer and upload the file to the library</h3>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="/cgi-bin/osmosupload.exe">
<INPUT TYPE="HIDDEN" NAME="ID" VALUE="29">
<INPUT TYPE="HIDDEN" NAME="goto" VALUE="">
<center><TABLE BGCOLOR="#FFCC66">
<tr BGCOLOR="#FF9933"><td colspan=2><b>Select File to Upload</b></td></tr>
<TR bgcolor="#FFFFCC"><TD bgcolor="#FF9933">Upload the following file:</TD><TD><INPUT TYPE="FILE" NAME="FILE" style="color:black; background:#FFFFCC"></TD></TR>
<tr><td colspan=2>&nbsp;</td></tr>
<TR><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="UPLOAD" VALUE="Upload file" class=listbutton  onMouseOver="this.className='hoverListButton'" onMouseOut="this.className='ListButton'" >
<INPUT TYPE=RESET NAME=RESET VALUE="RESET"  class=listbutton  onMouseOver="this.className='hoverListButton'" onMouseOut="this.className='ListButton'"></TD><TR>
</center></TABLE>
</form>
This particular (working) upload function uploads to this folder:

Alias /docs "C:/Apache2/docs"

<Directory "C:/Apache2/docs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

On adding another file upload form to my app, using the same setup, i now get a "Unhandled Exception: Method not allowed (PUT)" error in my browser, but no errors in the apache error.log. The error is not coming from my app, as it never even receives the call back to the upload form when i click "upload".

Code:
<h3 align=center><br/>Browse for a document on your computer and upload the file to the template library</h3>
<FORM METHOD="post" ENCTYPE="multipart/form-data" name="uploadform" ACTION="/cgi-bin/popupload.exe">
<INPUT TYPE="HIDDEN" NAME="ID" VALUE="29">
<INPUT TYPE="HIDDEN" NAME="istemplate" VALUE="1">
<INPUT TYPE="HIDDEN" NAME="doctype" VALUE="1">
<center><TABLE>
<tr BGCOLOR="#FF9933"><td colspan=2><b>Select File to Upload</b></td></tr>
<TR bgcolor="#FFFFCC"><TD bgcolor="#FF9933">Upload the following file:</TD><TD><INPUT TYPE="FILE" NAME="FILE" style="color:black; background:#FFFFCC"></TD></TR>
<tr><td colspan=2>&nbsp;</td></tr>
<TR><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="UPLOAD" VALUE="Upload file" class=listbutton  onMouseOver="this.className='hoverListButton'" onMouseOut="this.className='ListButton'" >
<INPUT TYPE=RESET NAME=RESET VALUE="RESET"  class=listbutton  onMouseOver="this.className='hoverListButton'" onMouseOut="this.className='ListButton'"></TD><TR>
</table></form>
This (not working) upload function uploads to this folder:
Alias /incdocs "C:/Apache2/incdocs"

<Directory "C:/Apache2/incdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Does anyone know why one works and not the other?



Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
Hi again

Please cancel this question. As usual, work on the problem for days, then 2 minutes after posting find the solution myself.

The error was in a property of the GeneralHTTPEngine component i was using...

Have a good week :)

Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top