Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. getting full path name using FileUpload control's FileName property

getting full path name using FileUpload control's FileName property

Scheduled Pinned Locked Moved ASP.NET
helpcsharpvisual-studioquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kvsreedhar
    wrote on last edited by
    #1

    hello any one may please help me! is it not possible to get the full path using FileUpload control FileName property? I am asking this because when selected a file for uploading in C drive (C:\filename.ext) and when I click on send mail it shows an error saying that the file is not available in the path "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\...". :rose: thanks in advance :rose:

    Kovuru Sreedhar

    M 1 Reply Last reply
    0
    • K kvsreedhar

      hello any one may please help me! is it not possible to get the full path using FileUpload control FileName property? I am asking this because when selected a file for uploading in C drive (C:\filename.ext) and when I click on send mail it shows an error saying that the file is not available in the path "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\...". :rose: thanks in advance :rose:

      Kovuru Sreedhar

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Re Post...

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      K 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Re Post...

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        K Offline
        K Offline
        kvsreedhar
        wrote on last edited by
        #3

        so what if can answer answer it .right .

        Kovuru Sreedhar

        K 1 Reply Last reply
        0
        • K kvsreedhar

          so what if can answer answer it .right .

          Kovuru Sreedhar

          K Offline
          K Offline
          kenexcelon
          wrote on last edited by
          #4

          System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName);

          K 1 Reply Last reply
          0
          • K kenexcelon

            System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName);

            K Offline
            K Offline
            kvsreedhar
            wrote on last edited by
            #5

            thanks for your valuable help.It really solved my problem.

            Kovuru Sreedhar

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups