Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need help uploading a file

    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...

    Code:
    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

  • #2
    Regular Coder
    Join Date
    Sep 2004
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Need to see a little bit more of the code. Especially where AF_value and username are assigned values.

  • #3
    New Coder
    Join Date
    Feb 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    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")

  • #4
    Regular Coder
    Join Date
    Sep 2004
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    New Coder
    Join Date
    Feb 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok nm, it was a case sensitive problem


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •