Upload form - appending date/time to file name

S

surfwthsharks

I have loaded the upload file webbot and have no problem working with it. I am saving the files to a sharepoint document library. The file has the same name and is overwritten with each upload. Is there a way I can have the webbot append a date and time to it?
 
T

Thomas A. Rowe

No. You would need to use a ASP and a ASP Upload component and coding to
accomplish.
--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================


surfwthsharks said:
I have loaded the upload file webbot and have no problem working with it.
I am saving the files to a sharepoint document library. The file has the
same name and is overwritten with each upload. Is there a way I can have
the webbot append a date and time to it?
 
S

Surfwthsharks

I figured out a work around. I posted
(Please include file name, Date,
and your Name in file.
Ex. HardwareRequest2004_5_5JonSmith.doc)
on the web form for the users

And added this code: <code from sharepoint upload form><INPUT type=hidden name="putopts" value="False"><SCRIPT
function setputopts(

if (document.OWSForm.overwrite.checked
document.OWSForm.putopts.value = "true"
els
document.OWSForm.putopts.value = "false"

</SCRIPT

This will not allow overwrites of previous documents, and will give the users an error if trying to overwrite
It works ok, can you see any problems in the future for this work around
 
T

Thomas A. Rowe

Great!

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================


Surfwthsharks said:
I figured out a work around. I posted:
(Please include file name, Date,
and your Name in file.
Ex. HardwareRequest2004_5_5JonSmith.doc)
on the web form for the users.

And added this code: <code from sharepoint upload form><INPUT type=hidden
name="putopts" value="False"> said:
function setputopts()
{
if (document.OWSForm.overwrite.checked)
document.OWSForm.putopts.value = "true";
else
document.OWSForm.putopts.value = "false";
}
</SCRIPT>

This will not allow overwrites of previous documents, and will give the
users an error if trying to overwrite.
 
Top