Forums

This topic is locked

Unique File Name

Posted 25 May 2001 23:28:13
1
has voted
25 May 2001 23:28:13 Viktor Farcic posted:
I used tutorial for by Steve Davis in order to create unique file names for files that will be uploaded with Pure ASP Upload. It worked, but when I tried to store that same unique name in DB I got stucked. I tried inserting strRandom variable in database but it stores different value from those used for file name.
Does anybody has some sort of clue how I can upload file with random selected name and store that file name in DB?

Replies

Replied 26 May 2001 05:25:16
26 May 2001 05:25:16 Steve Davis replied:
strRandom is only the random number part of the file name

Have a look for the line:

UploadRequest.Item(GP_curKey).Item("FileName" = strRandom & UploadRequest.Item(GP_curKey).Item("FileName"

and you will see that the random number is combined with the file name so you should be putting

UploadRequest.Item(GP_curKey).Item("FileName"

into the database.

Hope that helps

Me? I can't even spell ASP!

Reply to this topic