File Field Control

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

    #1

    File Field Control

    hie all, i have dragged a File Field control from the HTML
    tab to my page and i am able to browse and retrieve the
    file i want. the only problem i have is, i do not want my
    users to be able to browse to other folders. i want them
    to be able to just browse at the specific folder only. in
    other words, i just want them to be able to view at the
    specific folder when the browser button is clicked. i have
    tried looking in the properties, but found no way to do
    so. is it possible to acheive what i want to do? is it is,
    how can i do it? thanx!
  • Kevin Spencer

    #2
    Re: File Field Control

    No, it is not possible.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    All hotels in Benidorm. The best selection of Benidorm hotels with reviews and maps. Book in advance and save.

    Complex things are made up of
    lots of simple things.

    "Anne" <lilanne_2@yaho o.com> wrote in message
    news:08d101c356 7b$3873b8a0$a50 1280a@phx.gbl.. .[color=blue]
    > hie all, i have dragged a File Field control from the HTML
    > tab to my page and i am able to browse and retrieve the
    > file i want. the only problem i have is, i do not want my
    > users to be able to browse to other folders. i want them
    > to be able to just browse at the specific folder only. in
    > other words, i just want them to be able to view at the
    > specific folder when the browser button is clicked. i have
    > tried looking in the properties, but found no way to do
    > so. is it possible to acheive what i want to do? is it is,
    > how can i do it? thanx![/color]


    Comment

    • Ryan Gregg

      #3
      Re: File Field Control

      I believe you can use javascript to access the filename property of the File
      Upload form field. You could then do some sort of form validation that
      would prevent the form from being submitted if the path of the file to
      upload wasn't in the directory you were expecting. This would still let
      them browse any folder, but they could only upload from a valid folder.

      However, this may not be possible anymore due to some security issues that
      involved the file upload control and javascript, modern browsers might have
      disabled the ability to script that control. However, I haven't checked
      into it so I'm not sure.

      Ryan Gregg


      "Kevin Spencer" <kevin@takempis .com> wrote in message
      news:Ol868fpVDH A.2344@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Well, there is ONE thing you could do. You could write an ActiveX control[/color]
      or[color=blue]
      > Java Applet to run on the client which would provide the functionality you
      > need. It can't be done with a File Upload form field.
      >
      > --
      > HTH,
      >
      > Kevin Spencer
      > Microsoft MVP
      > .Net Developer
      > http://www.takempis.com
      > Complex things are made up of
      > lots of simple things.
      >
      > "Anne" <lilanne_2@yaho o.com> wrote in message
      > news:08d101c356 7b$3873b8a0$a50 1280a@phx.gbl.. .[color=green]
      > > hie all, i have dragged a File Field control from the HTML
      > > tab to my page and i am able to browse and retrieve the
      > > file i want. the only problem i have is, i do not want my
      > > users to be able to browse to other folders. i want them
      > > to be able to just browse at the specific folder only. in
      > > other words, i just want them to be able to view at the
      > > specific folder when the browser button is clicked. i have
      > > tried looking in the properties, but found no way to do
      > > so. is it possible to acheive what i want to do? is it is,
      > > how can i do it? thanx![/color]
      >
      >[/color]


      Comment

      Working...