IE doesn't allow manipulation of the type="file" input element from javascript due to security reasons. Setting the filename or invoking a click event to show the browser dialog will result in an "Access is denied" error on the form submit - Internet Explorer
is clever about remembering what methods have been invoked.
sathishcogni...
Member
6 Points
19 Posts
Getting Permission Denied error
Aug 15, 2011 12:21 PM|LINK
Hi
Im using the ajax AsyncFileUpload control for uploading the file in my project.
After selecting any one of the file through the control after that im getting the Permission Denied jscript error.
kindly please help me, how to resolve this issues.
im using IE7.
ajax
yashwanthb
Participant
1204 Points
207 Posts
Re: Getting Permission Denied error
Aug 15, 2011 12:31 PM|LINK
IE doesn't allow manipulation of the type="file" input element from javascript due to security reasons. Setting the filename or invoking a click event to show the browser dialog will result in an "Access is denied" error on the form submit - Internet Explorer is clever about remembering what methods have been invoked.
Similar issue: http://www.webdeveloper.com/forum/showthread.php?t=181272
ajax
Yashwanth kumar Biddareddy.
Please remember to mark the replies as answers if it helps you
sathishcogni...
Member
6 Points
19 Posts
Re: Getting Permission Denied error
Aug 15, 2011 12:38 PM|LINK
hi
thank you for your reply
could you please tell me what should i do now for resolve.
yashwanthb
Participant
1204 Points
207 Posts
Re: Getting Permission Denied error
Aug 15, 2011 12:46 PM|LINK
If you dont need asyncronus operation you can go ahead with asp.net file upload control
otherwise use asp.net ajax control toolkit
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx
Yashwanth kumar Biddareddy.
Please remember to mark the replies as answers if it helps you
sathishcogni...
Member
6 Points
19 Posts
Re: Getting Permission Denied error
Aug 15, 2011 12:53 PM|LINK
hi
previously i was used the asp.file control only, but i am using update panel.
using this update panel, i couldn't find filename through this filecontrol. so thats why i used asyncfileupload.
or tell me how to get the filename in the update panel.
chetan.sarod...
All-Star
65729 Points
11138 Posts
Re: Getting Permission Denied error
Aug 16, 2011 03:02 AM|LINK
Hi, Please refer this
http://forums.asp.net/t/1694701.aspx/1
http://forums.asp.net/t/1499418.aspx/1
http://forums.asp.net/t/1640812.aspx/1
ajax
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
yashwanthb
Participant
1204 Points
207 Posts
Re: Getting Permission Denied error
Aug 16, 2011 07:14 AM|LINK
Yes you can use Fileupload control in update panel
Check the below link :
http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx
Yashwanth kumar Biddareddy.
Please remember to mark the replies as answers if it helps you