benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

Upload file(blob) using httpRequest PUT method not working in IE #994

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HELP!

var desktop=google.gears.factory.create('beta.desktop');
    desktop.openFiles(function(files){
        var http = google.gears.factory.create('beta.httprequest');
        http.open('PUT', 'http://server/'+files[0].name);
        http.onreadystatechange = function() {
            if (http.readyState == 4) {
                alert(http.responseText);
            }
        };
    http.send(files[0].blob);

This works in FF and Chrome, but not working in IE.
----- http.send(files[0].blob);------
This line IE says "internal error"

Gears 0.5.33.0
Firefox 3.5
IE8/7/6
Windows XP

Original issue reported on code.google.com by dingguo...@gmail.com on 21 Jan 2010 at 1:40