Requirement in file upload control
-
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
-
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
For security reasons, you don't have granular control over the Input Type File control.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
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
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 )