• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Denied When Submitting File Upload

 
Lakshmie Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Subject: Access Denied When Submitting File Upload Posted on: Thu, 17 Mar 2005 02:44:39 +0000 (UTC)

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.

. Does anyone have any ideas? It's really important that I
can launch the file open dialog box from a hyperlink.



 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What browser are we talking about. What is this magical code that opens up the dialog?

Eric
 
Lakshmie Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam using IE 6 and there is no any magical logic to open the dialogbox, i using input type as "file"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic