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. How to get full path from fileupload control or every thing from client side? [modified]

How to get full path from fileupload control or every thing from client side? [modified]

Scheduled Pinned Locked Moved ASP.NET
tutorialjavatoolshelpquestion
7 Posts 3 Posters 2 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.
  • S Offline
    S Offline
    Saba02
    wrote on last edited by
    #1

    Hi, I want to get full path from fileUpload control or htmlFile or java script or every thing that i found in google, but i was unsuccessfull. Why i get FullPath in some system but i don't get in aother system for example via( fileupload1.PostedFile.FileName)? I need it for uploading file using ftp. How I can get full path, Plaese help me:(

    Hoda

    modified on Wednesday, August 12, 2009 5:02 AM

    A K 2 Replies Last reply
    0
    • S Saba02

      Hi, I want to get full path from fileUpload control or htmlFile or java script or every thing that i found in google, but i was unsuccessfull. Why i get FullPath in some system but i don't get in aother system for example via( fileupload1.PostedFile.FileName)? I need it for uploading file using ftp. How I can get full path, Plaese help me:(

      Hoda

      modified on Wednesday, August 12, 2009 5:02 AM

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      What is the need of fullpath ? You will not get. You will get only FileName. Use Posted file to uplaod the file.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        What is the need of fullpath ? You will not get. You will get only FileName. Use Posted file to uplaod the file.

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

        S Offline
        S Offline
        Saba02
        wrote on last edited by
        #3

        But I need it for sending file via ftp.

        Hoda

        1 Reply Last reply
        0
        • S Saba02

          Hi, I want to get full path from fileUpload control or htmlFile or java script or every thing that i found in google, but i was unsuccessfull. Why i get FullPath in some system but i don't get in aother system for example via( fileupload1.PostedFile.FileName)? I need it for uploading file using ftp. How I can get full path, Plaese help me:(

          Hoda

          modified on Wednesday, August 12, 2009 5:02 AM

          K Offline
          K Offline
          keyur satyadev
          wrote on last edited by
          #4

          you can get full path using following. Path.GetFullPath(FileUploadControlName.FileName)   :)

          Regards Keyur Satyadev

          S A 2 Replies Last reply
          0
          • K keyur satyadev

            you can get full path using following. Path.GetFullPath(FileUploadControlName.FileName)   :)

            Regards Keyur Satyadev

            S Offline
            S Offline
            Saba02
            wrote on last edited by
            #5

            I could not. Thank you

            Hoda

            1 Reply Last reply
            0
            • K keyur satyadev

              you can get full path using following. Path.GetFullPath(FileUploadControlName.FileName)   :)

              Regards Keyur Satyadev

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              keyur satyadev wrote:

              Path.GetFullPath(FileUploadControlName.FileName)

              The file is not in server side I guess :-D

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

              S 1 Reply Last reply
              0
              • A Abhijit Jana

                keyur satyadev wrote:

                Path.GetFullPath(FileUploadControlName.FileName)

                The file is not in server side I guess :-D

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

                S Offline
                S Offline
                Saba02
                wrote on last edited by
                #7

                I want to upload files from client side to server side via ftp.

                Hoda

                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