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. Requirement in file upload control

Requirement in file upload control

Scheduled Pinned Locked Moved ASP.NET
3 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.
  • H Offline
    H Offline
    Hari_1010
    wrote on last edited by
    #1

    Hi all, When i select a file to upload in the file upload control, I am not able to see the file name in the control after i selects the file. For eg: Suppose if i select a file from desktop, then in the file upload control i can see only "C:\Documents and settings", where i am not able to see the file name by default. Here my requirement is after i select the file to upload, I want the cursor to be get focused to the last in the control. So that I can see the file name as "\Desktop\Form.doc". Thanks and Regards, Hariharan C

    V C 2 Replies Last reply
    0
    • H Hari_1010

      Hi all, When i select a file to upload in the file upload control, I am not able to see the file name in the control after i selects the file. For eg: Suppose if i select a file from desktop, then in the file upload control i can see only "C:\Documents and settings", where i am not able to see the file name by default. Here my requirement is after i select the file to upload, I want the cursor to be get focused to the last in the control. So that I can see the file name as "\Desktop\Form.doc". Thanks and Regards, Hariharan C

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      For security reasons, you don't have granular control over the Input Type File control.

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      1 Reply Last reply
      0
      • H Hari_1010

        Hi all, When i select a file to upload in the file upload control, I am not able to see the file name in the control after i selects the file. For eg: Suppose if i select a file from desktop, then in the file upload control i can see only "C:\Documents and settings", where i am not able to see the file name by default. Here my requirement is after i select the file to upload, I want the cursor to be get focused to the last in the control. So that I can see the file name as "\Desktop\Form.doc". Thanks and Regards, Hariharan C

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        I don't think you can interact with the filename control in javascript, because it has access to the file system, and javascript does not. Also, it stops you from putting such a control on a page, using javascript to put a path like c:\windows\somesensitivefile.doc into it, and getting files from people's computers.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        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