my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Access Denied When Submitting File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Access Denied When Submitting File Upload" Watch "Access Denied When Submitting File Upload" New topic
Author

Access Denied When Submitting File Upload

Lakshmie Reddy
Greenhorn

Joined: Mar 03, 2010
Posts: 4

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

Joined: Nov 08, 2001
Posts: 15376
    
    6
What browser are we talking about. What is this magical code that opens up the dialog?

Eric
Lakshmie Reddy
Greenhorn

Joined: Mar 03, 2010
Posts: 4
Iam using IE 6 and there is no any magical logic to open the dialogbox, i using input type as "file"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Access Denied When Submitting File Upload
 
Similar Threads
Check for File Exists using Javascript
Uploading files
Getting error to upload file
Uploading forms
uploading multiple files, 'post' not working off server (works fine off local host)