Skip to content

Commit 3ba0fae

Browse files
committed
[release] 0.5.1
1 parent c0842d6 commit 3ba0fae

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

dist/uploader.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Uploader - Uploader library implements html5 file upload and provides multiple simultaneous, stable, fault tolerant and resumable uploads
3-
* @version v0.5.0
3+
* @version v0.5.1
44
* @author dolymood <[email protected]>
55
* @link https://github.com/simple-uploader/Uploader
66
* @license MIT
@@ -302,7 +302,9 @@ utils.extend(Chunk.prototype, {
302302
utils.each(query, function (v, k) {
303303
data.append(k, v)
304304
})
305-
data.append(this.uploader.opts.fileParameterName, blob, this.file.name)
305+
if (typeof blob !== 'undefined') {
306+
data.append(this.uploader.opts.fileParameterName, blob, this.file.name)
307+
}
306308
}
307309

308310
this.xhr.open(method, target, true)
@@ -377,7 +379,7 @@ var event = _dereq_('./event')
377379
var File = _dereq_('./file')
378380
var Chunk = _dereq_('./chunk')
379381

380-
var version = '0.5.0'
382+
var version = '0.5.1'
381383

382384
var isServer = typeof window === 'undefined'
383385

0 commit comments

Comments
 (0)