View Full Version : Need help uploading a file

08-25-2005, 01:02 AM
I just want to check the uploaded file to see if it includes the username and date as a prefix to avoid duplicates

I think I have to cut the upload string somehow...

Shouldn't something like the below work for at least the username? I tried it with the username but it didn't work for some reason...

if username <> left(AF_value, len(username)) then

anyway i'm thinking something along these lines and then I can add the two valued variable

08-25-2005, 03:39 PM
Need to see a little bit more of the code. Especially where AF_value and username are assigned values.

08-25-2005, 05:47 PM

if UploadRequest.Item(AF_curKey).Item("FileName") <> "" then
AF_value = UploadRequest.Item(AF_curKey).Item("Value")
AF_valueBeg = UploadRequest.Item(AF_curKey).Item("ValueBeg")
AF_valueLen = UploadRequest.Item(AF_curKey).Item("ValueLen")

08-25-2005, 07:09 PM
Are you looping through the request object looking for the file and then assigning it to AF_value? If so, the value of AF_value is going to be the file itself, not the name.

08-25-2005, 08:51 PM
ok nm, it was a case sensitive problem