ASP Upload - does object persist across pages?
Hi,
I am using the ASPUpload component.
I declare a global variable "Upload" in an ASP include file.
Then, I create an instance on my first page (that includes the include file):
Set Upload = Server.CreateObject("Persits.Upload")
and upload my pics to memory:
numPicsUploaded = Upload.Save
then save them as new names to a temporary directory on the server, which works fine.
I then redirect from this page to an ASP page that previews the uploaded pics.
Question: On this new page, can I reference the Upload object? It seems that I can't. However, I need to, because I want to manipulate the uploaded files (move them from the temporary directory to my main picture directory, and delete them from the temporary directory) at that point.
Does the Upload object persist on the server so that all pages can use it after it has been created? If so, for how long does it exist, and how would I destroy it? Is there a "destructor" for it?
Hope you can help.
Thanks.
James
//##
|