INPUT TYPE=FILE Alternative.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Glenn M

    INPUT TYPE=FILE Alternative.

    I am aware of the security issues with the INPUT TYPE=FILE HTML form
    element and not being able to set a default value for the control.

    I dont want to be able to upload files , i just want to get their unc
    paths and write them to a database , and then poulate the control with
    the value when the page posts back.

    Can i do this with a TEXT input element and some java script to
    display the file/opnen dialog box and return the file name selected to
    the text control?
  • DU

    #2
    Re: INPUT TYPE=FILE Alternative.

    Followup-to: comp.infosystem s.www.authoring.html

    Glenn M wrote:
    [color=blue]
    > I am aware of the security issues with the INPUT TYPE=FILE HTML form
    > element and not being able to set a default value for the control.
    >
    > I dont want to be able to upload files , i just want to get their unc
    > paths and write them to a database , and then poulate the control with
    > the value when the page posts back.
    >
    > Can i do this with a TEXT input element and some java script to
    > display the file/opnen dialog box and return the file name selected to
    > the text control?[/color]

    The answer to your problem is explained right here:

    Why and how to crosspost


    Multiposting
    Multiposting is when you post separate copies of a message to multiple
    newsgroups. It is considered bad practice for a number of reasons:


    DU
    Followup-to: comp.infosystem s.www.authoring.html

    Comment

    • Tim Slattery

      #3
      Re: INPUT TYPE=FILE Alternative.

      glenn.mantle@bt .com (Glenn M) wrote:
      [color=blue]
      >I am aware of the security issues with the INPUT TYPE=FILE HTML form
      >element and not being able to set a default value for the control.
      >
      >I dont want to be able to upload files , i just want to get their unc
      >paths and write them to a database , and then poulate the control with
      >the value when the page posts back.
      >
      >Can i do this with a TEXT input element and some java script to
      >display the file/opnen dialog box and return the file name selected to
      >the text control?[/color]

      Not if the browser is using the normal security model. Script is not
      allowed any access to the client's file system.

      --
      Tim Slattery
      Slattery_T@bls. gov

      Comment

      Working...