Hi
I'm using an ASP form to send some data to an IIS web server. I also want the users to be able to add an additional file, so I included a "file" input field and installed the necessary dll on IIS to make the upload possible.
Everything works as it should, except when the file input field is left blank. Then I get a http 500 error and my processing ASP page is not displayed. Since the other (regular) fields aren't sent to the server either (normally I would see the entries in a database on the server) this means that the ASP page processing the form isn't even started.
I'm using the syntax as described on the Microsoft site (MSDN library, "the posting acceptor"
, so I think this may be a rather simple problem (especially since the upload works, and that should be the most difficult part...).
This is some of the code :
strServerURL = " + Request.ServerVariables("SERVER_NAME"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
strTargetURL = strServerURL & "/WebrepFiles"
strRepostURL = strServerURL & "/Webreporting2/process.asp"
strPathToPA = strServerURL & "/Scripts/cpshost.dll"
strPostingURL = strPathToPA + "?PUBLISH?" + strRepostURL
'Setting the location variables server-independent (MS)
<FORM method="POST" action="<% =strPostingURL %>" id=form1 name=form1 enctype="multipart/form-data">
<input type="hidden" name="TargetURL" value="<% =strTargetURL %>">
'The form header and hidden target field
Any tips?
Thanks
Tim
I'm using an ASP form to send some data to an IIS web server. I also want the users to be able to add an additional file, so I included a "file" input field and installed the necessary dll on IIS to make the upload possible.
Everything works as it should, except when the file input field is left blank. Then I get a http 500 error and my processing ASP page is not displayed. Since the other (regular) fields aren't sent to the server either (normally I would see the entries in a database on the server) this means that the ASP page processing the form isn't even started.
I'm using the syntax as described on the Microsoft site (MSDN library, "the posting acceptor"
This is some of the code :
strServerURL = " + Request.ServerVariables("SERVER_NAME"
strTargetURL = strServerURL & "/WebrepFiles"
strRepostURL = strServerURL & "/Webreporting2/process.asp"
strPathToPA = strServerURL & "/Scripts/cpshost.dll"
strPostingURL = strPathToPA + "?PUBLISH?" + strRepostURL
'Setting the location variables server-independent (MS)
<FORM method="POST" action="<% =strPostingURL %>" id=form1 name=form1 enctype="multipart/form-data">
<input type="hidden" name="TargetURL" value="<% =strTargetURL %>">
'The form header and hidden target field
Any tips?
Thanks
Tim