• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access Denied When Submitting File Upload

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic