Microsoft KB Archive/248053: Difference between revisions
m (Text replacement - "&" to "&") |
m (Text replacement - """ to """) |
||
Line 64: | Line 64: | ||
This error occurs after the installation of Site Server SP2 or SP3.<br /> | This error occurs after the installation of Site Server SP2 or SP3.<br /> | ||
The updated version of | The updated version of "Cpshost.dll" does not pass user credentials to the script "Repost.asp". These are needed to work if the upload sample scripts are configured for nonanonymous upload (default).<br /> | ||
Line 75: | Line 75: | ||
<ol> | <ol> | ||
<li>Backup the script | <li>Backup the script "Inetpub\scripts\repost.asp"</li> | ||
<li><p>Edit | <li><p>Edit "Inetpub\scripts\repost.asp", so that it looks like the following code:</p> | ||
<pre class="codesample"><% Response.Buffer = TRUE %> | <pre class="codesample"><% Response.Buffer = TRUE %> | ||
<!--#include virtual= | <!--#include virtual="/SiteServer/Publishing/pasetup.inc"--> | ||
<HTML> | <HTML> | ||
Line 93: | Line 93: | ||
<HR> | <HR> | ||
Destination: <B><% Response.Write Request.Form( | Destination: <B><% Response.Write Request.Form("TargetURL") %></B><BR> | ||
<HR><BR> | <HR><BR> | ||
<% | <% | ||
For I = 1 To Request.Form( | For I = 1 To Request.Form("FileName").Count | ||
Response.Write | Response.Write "Successfully uploaded file: <B>" _ | ||
& Request.Form( | & Request.Form("FileName")(I) _ | ||
& Request.Form( | & Request.Form("FileExtention")(I) &"</B><BR>" | ||
Response.Write | Response.Write "Physical path: <B>" & Request.Form("FilePath")(I) & "</B><BR>" | ||
Response.Write | Response.Write "Size: <B>" & Request.Form("FileSize")(I) & "</B> bytes<P>" | ||
Next | Next | ||
%> | %> | ||
<BR><HR> | <BR><HR> | ||
<A HREF= | <A HREF="<% =PublishingURL %>/deploymentd.asp">Back to main Publishing page</A><BR> | ||
</BODY> | </BODY> | ||
</HTML> | </HTML> | ||
</pre></li> | </pre></li> | ||
<li>Save the script as | <li>Save the script as "Inetpub\scripts\repost.asp"</li></ol> | ||
Latest revision as of 13:50, 21 July 2020
Article ID: 248053
Article Last Modified on 8/28/2002
APPLIES TO
- Microsoft Site Server 3.0 Standard Edition
This article was previously published under Q248053
SYMPTOMS
If you upload files to a Computer running Site Server using the HTTP Post Sample (http://computer/SiteServer/Publishing/uploadnd.asp) the following error will appear:
CAUSE
This error occurs after the installation of Site Server SP2 or SP3.
The updated version of "Cpshost.dll" does not pass user credentials to the script "Repost.asp". These are needed to work if the upload sample scripts are configured for nonanonymous upload (default).
RESOLUTION
To correct this Problem follow these steps:
- Backup the script "Inetpub\scripts\repost.asp"
Edit "Inetpub\scripts\repost.asp", so that it looks like the following code:
<% Response.Buffer = TRUE %> <!--#include virtual="/SiteServer/Publishing/pasetup.inc"--> <HTML> <TITLE> Repost Example </TITLE> <BODY> <H1><CENTER> Welcome<BR> Here is your upload status:<BR> </CENTER></H1> <HR> Destination: <B><% Response.Write Request.Form("TargetURL") %></B><BR> <HR><BR> <% For I = 1 To Request.Form("FileName").Count Response.Write "Successfully uploaded file: <B>" _ & Request.Form("FileName")(I) _ & Request.Form("FileExtention")(I) &"</B><BR>" Response.Write "Physical path: <B>" & Request.Form("FilePath")(I) & "</B><BR>" Response.Write "Size: <B>" & Request.Form("FileSize")(I) & "</B> bytes<P>" Next %> <BR><HR> <A HREF="<% =PublishingURL %>/deploymentd.asp">Back to main Publishing page</A><BR> </BODY> </HTML>
- Save the script as "Inetpub\scripts\repost.asp"
MORE INFORMATION
REFERENCES
For additional information, see the following article or articles in the Microsoft Knowledge Base:
179566 How to Do Anonymous Uploads
Keywords: kbprb KB248053