Results 1 to 3 of 3

Thread: input type = "file"

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    I need to know the file name (especially file type) that was posted to me.

    <input type = "file">

    PHP gives me a temp file name with no extension.

    any ideas?
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  2. #2
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    <input type = "file" id="Test">
    .....................................

    Once you have selected the file..say test.doc

    let the path be c:\test.doc


    Test.value gives "c:\test.doc" now u can split and get the file type..

    Sonia

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    That works fine (probally will do that) however, that happens on the client side, what about figuring it all out on the server side?
    Kurt Simons
    [I know I'm a hack but my clients don't!]

Posting Permissions

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



Click Here to Expand Forum to Full Width