Hi all
I have a mystery here... In my cgi app i have a working file upload 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".
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!
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> </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>
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> </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>
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!