Access Denied When Submitting File Upload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mattrapoport@gmail.com

    #1

    Access Denied When Submitting File Upload

    I have a form with an input type='file' element. I click on the Browse
    button of my file upload element, select a file, and hit open. The
    file name appears in the textbox portion of the file upload element (as
    expected). When I submit this form everything works perfectly.

    On the same form I have a hyperlink that simulates clicking on the
    Browse button of the file upload element. It does this by using the
    file upload element's name and the click() method. I click on the
    hyperlink and the file dialog box opens as if I had clicked the Browse
    button. I select a file and hit open. The file name appears in the
    textbox portion of the file upload element - just like it should. BUT
    ... when I try to submit this form I get a javascript error that says
    "Access is Denied". The error is not on the next page, it's on this
    page - that is, the form never actually gets submitted and processed.
    There can be no doubt that this is a client-side error.

    I've seen a lot of posts about this from a couple years ago but no
    solutions. Does anyone have any ideas? It's really important that I
    can launch the file open dialog box from a hyperlink.

    Thanks,

    Matt

  • kaeli

    #2
    Re: Access Denied When Submitting File Upload

    In article <1111027473.203 723.35790@g14g2 000cwa.googlegr oups.com>,
    mattrapoport@gm ail.com enlightened us with...[color=blue]
    >
    > I've seen a lot of posts about this from a couple years ago[/color]

    That's the thing. New security constraints have been put it place. I don't
    think you're allowed to do this at all in a normal environment.
    You could easily do it in an HTA, but I don't think that was what you were
    going for.

    You could probably also do it with a signed applet or ActiveX.

    --
    --
    ~kaeli~
    If a parsley farmer is sued, can they garnish his wages?



    Comment

    Working...