...

View Full Version : Need help uploading a file



XTGeminiman
08-25-2005, 12: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

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

XTGeminiman
08-25-2005, 04:47 PM
username=request.cookies("username")

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")

neocool00
08-25-2005, 06: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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum