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
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Noblesville, IN
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    grabbing just the file name from a file field

    how do i grab just the file name from a file upload field?
    Ed Ventura
    Graphic/Web Designer
    www.blackwatercompany.com

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    function File_Name_Only(str) {
    file_name = str.substring(str.lastIndexOf('/')+1,str.length)
    return file_name
    return null
    }


  •  

    Posting Permissions

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