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 2 of 2

Thread: FileUp name

  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    28
    Thanks
    4
    Thanked 0 Times in 0 Posts

    FileUp name

    I'm using the FileUp method to upload files from a form, and there must be a way to determine the name of the current input field in question, but that's what I don't know how to get. The file upload method is as follows:

    Code:
    for each item in UpObj.form
    
    	If IsObject(UpObj.form(item)) then
    	   If UpObj.form(item).IsEmpty Then
    	   Else
                      'upload file here
    I was trying to find the name of the field with "UpObj.Form(item).Name", but that results in an error.

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    What's the error?
    And try using UpObj.Fields(Field_Name) instaed.


  •  

    Posting Permissions

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