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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webbot Upload not redirecting to Confirmation URL

Status
Not open for further replies.

itgold

Programmer
Feb 8, 2008
1
I took over maintenance of a site and had the domain moved to a new hosting service. This is a large site with and uses an Admin section to upload graphics to a folder on the server.
I first ran into a runtime error because the hosting service I guess does not recognize the nortbots part of the Front Page extensions. So we change that part of the code by removing the onSubmit=”location.href=’_deived/nortbos.htm’”return false;” webbot-onSubmit” and the files now upload to the right folder, however it does not go to the confirmation page after the upload is complete. The confirmation page contains sql code to update the database.

Original:
<form method="POST" enctype="multipart/form-data" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>

<!--webbot bot="FileUpload" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Destination="Admin/Uploads/" S-Category S-Assignedto S-ReviewStatus B-Process-MetaInfo="FALSE" S-Builtin-Fields U-Confirmation-Url="Admin/forward.html" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><input TYPE="hidden" NAME="_charset_" VALUE="windows-1252"><!--webbot bot="FileUpload" i-checksum="58985" endspan -->
<p><input type="file" name="F1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

Change To:
<form method="POST"enctype="multipart/formdata"action="../../_vti_bin/shtml.exe/mywebsite.com/Admin/add_File.html" webbot-action="--WEBBOT-SELF--">

<!--webbot bot="FileUpload" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Destination="mywebsite.com/Admin/Uploads/" S-Category S-Assignedto S-ReviewStatus B-Process-MetaInfo="FALSE" S-Builtin-Fields U-Confirmation-Url="mywebsite.com/Admin/forward.html" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><input TYPE="hidden" NAME="_charset_" VALUE="windows-1252"><!--webbot bot="FileUpload" i-checksum="58985" endspan -->

Any help would be greatly appriciated.
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top