file upload(htmlfile: access is denied)

Discussion in 'ASP .Net Web Controls' started by Pedro Rafael, Sep 22, 2003.

  1. Pedro Rafael

    Pedro Rafael Guest

    Hello,

    i'm trying to use another button (other than "browse...") to throw the
    window used to choose the file for upload, something like:
    onclick="objUpload.click()", ( being the objUpload a htmlcontrol run
    at server of the type file).
    But after choosing the file, i click on a button (webcontrol) and then
    i get the following error in __doPostBack javascript function:
    htmlfile: access is denied.

    Why do i get this error message?
    Is it possible to do what i want?

    Thanks.


    P.R.
     
    Pedro Rafael, Sep 22, 2003
    #1
    1. Advertising

  2. Pedro Rafael

    Guest

    Hi Rafael,
    I have the same exact problem.

    I think the main issue here is programatically clicking on the file
    input control so that the file selection dialog appears. In fact, as
    soon as i remove this step, my button click works fine!

    Did you find a workaround to this?

    cheers,
    Temo

    Pedro Rafael wrote:
    > Hello,
    >
    > i'm trying to use another button (other than "browse...") to throw

    the
    > window used to choose the file for upload, something like:
    > onclick="objUpload.click()", ( being the objUpload a htmlcontrol run
    > at server of the type file).
    > But after choosing the file, i click on a button (webcontrol) and

    then
    > i get the following error in __doPostBack javascript function:
    > htmlfile: access is denied.
    >
    > Why do i get this error message?
    > Is it possible to do what i want?
    >
    > Thanks.
    >
    >
    > P.R.
     
    , Mar 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    6
    Views:
    5,778
    tom_tregenna
    May 2, 2008
  2. Replies:
    0
    Views:
    530
  3. JT
    Replies:
    2
    Views:
    710
  4. Genival Carvalho

    htmlfile: Invalid pointer :0 ?

    Genival Carvalho, May 31, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    188
    Genival Carvalho
    Jun 1, 2004
  5. Replies:
    3
    Views:
    85
Loading...

Share This Page