Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed using on.cancel() instead of on.remove()

  • Loading branch information...
commit 6e5188cdde39fbf9f393848a66f61933fa68df4a 1 parent be23e20
@speich authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  speich.net/fileUploader/Uploader.js
  2. +4 −4 upload.htm
View
2  speich.net/fileUploader/Uploader.js
@@ -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
}
}
View
8 upload.htm
@@ -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;
@@ -43,7 +43,7 @@
// 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>
@@ -55,7 +55,7 @@
var upl = new Uploader({
url: kernel.moduleUrl('snet') + 'fileUploader/upload-controller.php',
dropTarget: 'dropTarget',
- maxKBytes: 10000,
+ maxKBytes: 50000,
maxNumFiles: 10
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.