s3_multipart 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/s3_multipart/version.rb
CHANGED
@@ -23,11 +23,11 @@
|
|
23
23
|
options = options || {
|
24
24
|
fileSelector: null,
|
25
25
|
bucket: null,
|
26
|
-
onStart: function(
|
27
|
-
console.log("File "+num+" has started uploading")
|
26
|
+
onStart: function(upload) {
|
27
|
+
console.log("File "+upload.num+" has started uploading")
|
28
28
|
},
|
29
|
-
onComplete: function(
|
30
|
-
console.log("File "+num+" successfully uploaded")
|
29
|
+
onComplete: function(upload) {
|
30
|
+
console.log("File "+upload.num+" successfully uploaded")
|
31
31
|
},
|
32
32
|
onPause: function(num) {
|
33
33
|
console.log("File "+num+" has been paused")
|
@@ -77,7 +77,7 @@
|
|
77
77
|
uploadObj.parts[j].activate();
|
78
78
|
}
|
79
79
|
S3MP.handler.startProgressTimer(key);
|
80
|
-
S3MP.onStart(
|
80
|
+
S3MP.onStart(uploadObj); // This probably needs to go somewhere else.
|
81
81
|
}
|
82
82
|
}
|
83
83
|
return beginUpload;
|
@@ -122,7 +122,7 @@
|
|
122
122
|
|
123
123
|
// Increase the uploaded count and delete the finished part
|
124
124
|
uploadObj.uploaded += finished_part.size;
|
125
|
-
uploadObj.inprogress[finished_part.num] = 0;
|
125
|
+
uploadObj.inprogress[finished_part.num-1] = 0;
|
126
126
|
i = _.indexOf(parts, finished_part);
|
127
127
|
parts.splice(i,1);
|
128
128
|
|
@@ -156,7 +156,7 @@
|
|
156
156
|
// Notify the client that the upload has succeeded when we
|
157
157
|
// get confirmation from the server
|
158
158
|
if (obj.location) {
|
159
|
-
S3MP.onComplete(
|
159
|
+
S3MP.onComplete(uploadObj);
|
160
160
|
}
|
161
161
|
});
|
162
162
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_multipart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuid
|