| Author |
VBScript IE Error "The download of the specified resource has failed"
|
Rr Kumaran
Ranch Hand
Joined: Sep 17, 2001
Posts: 548
|
|
Hi, Basically I am trying to upload a file using VBScript + AJAX in the client browser and the uploaded file will be stored on the server using CGI + PERL. When I select a file from my local machine and submit the page I am getting an IE VBScript error "The download of the specified resource has failed". I enabled all the settings in Tools->Internet Options->Security Tab->Internet Zone. All the I changed the Windows Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4} to 0 but no avail. I am using Windows XP Service Pack2 and IE 6.0. Below is the script that is causing problem and the VBScript error comes at the line "xmlhttp.Send sData". Please suggest. Thanks.
|
RR Kumaran
SCJP 1.4
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
I do not think you can upload a file using the XMLHttpRequest object since it is a big security risk. Eric
|
 |
Rr Kumaran
Ranch Hand
Joined: Sep 17, 2001
Posts: 548
|
|
Hi Eric, Thank you for the response. Basically I am looking for some piece of code/script that will help me in uploading a file from browser to cgi+perl running on server. Can you please redirect me to such code that uses javascript/vbscript. Thanks.
|
 |
 |
|
|
subject: VBScript IE Error "The download of the specified resource has failed"
|
|
|