seperating filenames

Discussion in 'ASP General' started by John Smith, Sep 16, 2003.

  1. John Smith

    John Smith Guest

    Hi,

    I'm using the input File method for users to upload their files to a folder
    on a website, I wanted to store the filename in the database but the
    information that is produced from the input File is an absolute path to the
    file on the users system (ie. c:/usersfolder/usersfile.doc) where as I only
    want the filename (usersfile.doc). I am presuming that this is going to be a
    Split method but is there a decent place to find a tutorial on this. I've
    had a good google but can't seem to find anything.

    Thanks

    John
     
    John Smith, Sep 16, 2003
    #1
    1. Advertising

  2. John Smith

    Ray at Guest

    What component are you using to process the upload?

    Ray at work

    "John Smith" <> wrote in message
    news:bk73vm$adm$...
    > Hi,
    >
    > I'm using the input File method for users to upload their files to a

    folder
    > on a website, I wanted to store the filename in the database but the
    > information that is produced from the input File is an absolute path to

    the
    > file on the users system (ie. c:/usersfolder/usersfile.doc) where as I

    only
    > want the filename (usersfile.doc). I am presuming that this is going to be

    a
    > Split method but is there a decent place to find a tutorial on this. I've
    > had a good google but can't seem to find anything.
    >
    > Thanks
    >
    > John
    >
    >
     
    Ray at, Sep 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Salim Afþar

    seperating ascx and cs files

    Salim Afþar, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    392
    Salim Afþar
    Jul 10, 2003
  2. Aaron Kornbluth

    Seperating IIS from Application

    Aaron Kornbluth, May 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    375
    Aaron Kornbluth
    May 5, 2004
  3. =?Utf-8?B?Sm9l?=

    Seperating code from HTML markup

    =?Utf-8?B?Sm9l?=, Feb 15, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    401
    =?Utf-8?B?Sm9l?=
    Feb 15, 2006
  4. Pokey

    Seperating an integer

    Pokey, Nov 13, 2003, in forum: Java
    Replies:
    3
    Views:
    402
    Roedy Green
    Nov 18, 2003
  5. B.J.
    Replies:
    4
    Views:
    760
    Toby Inkster
    Apr 23, 2005
Loading...

Share This Page