benlilaj / gears

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

FF upload large file fail. #996

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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);

if file is very large, FF fail uploading.
Gears 0.5.33.0
Firefox 3.5
Windows XP

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