file upload(htmlfile: access is denied)

P

Pedro Rafael

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

temo.chalasani

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top