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. Advertisements

  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. Advertisements

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:
    6,015
    tom_tregenna
    May 2, 2008
  2. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,070
    Bruce Barker
    Aug 3, 2005
  3. Replies:
    0
    Views:
    600
  4. =?Utf-8?B?aWdvdHlvdXJkb3RuZXQ=?=

    access denied error for file upload

    =?Utf-8?B?aWdvdHlvdXJkb3RuZXQ=?=, Sep 28, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,950
    Steven Cheng[MSFT]
    Sep 29, 2006
  5. JT
    Replies:
    2
    Views:
    948
  6. DA
    Replies:
    2
    Views:
    319
  7. Replies:
    1
    Views:
    430
    kaeli
    Mar 17, 2005
  8. Replies:
    3
    Views:
    129
Loading...