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
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