here is some code from one of my projects...
I think "UserFilename" is what you want
I cant remember what is going on with the "ServerAssignedName"
You will have to play around with it..
set Upload = server.CreateObject("Dundas.Upload.2")
Upload.UseUniqueNames = True
Upload.MaxFileSize = 1048576
Upload.Save(UploadDirectory)
ServerAssignedName = Mid(Upload.Files(0).Path,
InstrRev(Upload.Files(0).Path,"\") + 1)
UserFilename = Mid(Upload.Files(0).OriginalPath,
InstrRev(Upload.Files(0).OriginalPath,"\") + 1)
"Soha" <se******@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
i'm using the dundas freelib upload code to upload files in my website.
when the user choses to upload a file a new window is opened and the
upload procedure goes fine and the file is uploaded successfully. but
the problem is the i want to know the name of the file in the parent
window to save it in the database. i tried to use a session variable
which contains the name of the file but it dosen't work.
the parent window contains a form which is used to insert new data in
the database so i can't use the upload window to insert the filename in
the database.