Hi,
I have an HTML form with a browse button for file upload. If in the text I directly type the file name then:
1. If I type full path, e.g d:\abc.pdf, then hitting submit works fine.
2. If I type just the file name, e.g abc.pdf, then hitting submit hangs the browser. Javascript error says : Access denied.
This problem is occuring in IE7. Works fine with firefox. I tried changing the browser setting like this : Tools>Internet Options> Security>Custom Level>Miscellan eous>>Access data source across domain : Prompt. It didnt change anything.
I know what the problem is, but I dont know how to solve this. At least the browser should not hang because of javascript error. I do have backend validation for this file. I just want to escape javascript error.
Thanks,
Shishir
MA, USA.
I have an HTML form with a browse button for file upload. If in the text I directly type the file name then:
1. If I type full path, e.g d:\abc.pdf, then hitting submit works fine.
2. If I type just the file name, e.g abc.pdf, then hitting submit hangs the browser. Javascript error says : Access denied.
This problem is occuring in IE7. Works fine with firefox. I tried changing the browser setting like this : Tools>Internet Options> Security>Custom Level>Miscellan eous>>Access data source across domain : Prompt. It didnt change anything.
I know what the problem is, but I dont know how to solve this. At least the browser should not hang because of javascript error. I do have backend validation for this file. I just want to escape javascript error.
Thanks,
Shishir
MA, USA.
Comment