getting uploaded file name

Discussion in 'ASP .Net' started by =?Utf-8?B?YXNhZA==?=, Apr 18, 2005.

  1. Hello friends, i need some help in getting uploaded file name, i am uploading
    2 files and i want to get only the filename of these 2 file not a full path
    so pls tell me which function or technique i use for getting this. I am using
    ASP.NET built-in uploading.
    Thanks.
     
    =?Utf-8?B?YXNhZA==?=, Apr 18, 2005
    #1
    1. Advertising

  2. If all you want is the file name, why upload the file at all?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    What You Seek Is What You Get.

    "asad" <> wrote in message
    news:...
    > Hello friends, i need some help in getting uploaded file name, i am
    > uploading
    > 2 files and i want to get only the filename of these 2 file not a full
    > path
    > so pls tell me which function or technique i use for getting this. I am
    > using
    > ASP.NET built-in uploading.
    > Thanks.
     
    Kevin Spencer, Apr 18, 2005
    #2
    1. Advertising

  3. Use

    System.IO.Path.GetFileName(Current.Request.Files(0).FileName)

    - Manso

    "asad" wrote:

    > Hello friends, i need some help in getting uploaded file name, i am uploading
    > 2 files and i want to get only the filename of these 2 file not a full path
    > so pls tell me which function or technique i use for getting this. I am using
    > ASP.NET built-in uploading.
    > Thanks.
     
    =?Utf-8?B?TWFuc28=?=, Apr 18, 2005
    #3
    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. Matt G
    Replies:
    1
    Views:
    1,201
    Deepak Kumar Vasudevan
    Aug 22, 2003
  2. =?Utf-8?B?dGhlIGZyaWVuZGx5IGRpc3BsYXkgbmFtZQ==?=

    Elegant way to get name of uploaded file?

    =?Utf-8?B?dGhlIGZyaWVuZGx5IGRpc3BsYXkgbmFtZQ==?=, Oct 11, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    469
    Peter Rilling
    Oct 11, 2005
  3. AA
    Replies:
    2
    Views:
    436
    Andrea Desole
    Jun 13, 2006
  4. Replies:
    4
    Views:
    148
    McKirahan
    Mar 8, 2006
  5. froil
    Replies:
    12
    Views:
    324
    Gunnar Hjalmarsson
    Mar 2, 2006
Loading...

Share This Page