Skip to content

Commit

Permalink
fixed using on.cancel() instead of on.remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
speich committed Jan 7, 2012
1 parent be23e20 commit 6e5188c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion speich.net/fileUploader/Uploader.js
Expand Up @@ -441,7 +441,7 @@ define([
// in FF4 never evt.loaded == bar.maximum, but in chrome
// see https://bugzilla.mozilla.org/show_bug.cgi?id=637002
arguments.callee.done = true;
cnn.cancel(); // make sure this only gets called once per bar => use disconnect
cnn.remove(); // make sure this only gets called once per bar after upload is completed
bar.wait(); // upload is complete but file has not been written to disk, waits for status 200
}
}
Expand Down
8 changes: 4 additions & 4 deletions upload.htm
Expand Up @@ -2,14 +2,14 @@
<html>
<head>
<title>www.speich.net - HTML5 multiple file uploader with drag and drop.</title>
<link href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dijit/themes/claro/document.css" rel="stylesheet" type="text/css">
<link href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css">
<link href="../library/speich.net/fileUploader/resources/uploader.css" rel="stylesheet" type="text/css">
<link href="speich.net/fileUploader/resources/uploader.css" rel="stylesheet" type="text/css">
<style type="text/css">
body { padding: 20px; }
#dropTarget {
width: 400px;
margin: 12px 0;
font-size: 10px;
text-align: center;
min-height: 120px;
padding: 6px;
Expand Down Expand Up @@ -43,7 +43,7 @@ <h1>HTML5 demo: Multiple file upload with dojo and PHP</h1>
// baseUrl: '/library/dojo/1.7.1/dojo/',
baseUrl: 'http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/',
packages: [
{ name: 'snet', location: '/library/speich.net'}
{ name: 'snet', location: '/speich.net'}
]
};
</script>
Expand All @@ -55,7 +55,7 @@ <h1>HTML5 demo: Multiple file upload with dojo and PHP</h1>
var upl = new Uploader({
url: kernel.moduleUrl('snet') + 'fileUploader/upload-controller.php',
dropTarget: 'dropTarget',
maxKBytes: 10000,
maxKBytes: 50000,
maxNumFiles: 10
});
});
Expand Down

0 comments on commit 6e5188c

Please sign in to comment.