Skip to content

Commit

Permalink
[release] 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Aug 27, 2018
1 parent a385b3c commit a0d5288
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions dist/uploader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Uploader - Uploader library implements html5 file upload and provides multiple simultaneous, stable, fault tolerant and resumable uploads
* @version v0.3.2
* @version v0.4.0
* @author dolymood <[email protected]>
* @link https://github.com/simple-uploader/Uploader
* @license MIT
Expand Down Expand Up @@ -69,6 +69,9 @@ utils.extend(Chunk.prototype, {
},

getTarget: function (target, params) {
if (!params.length) {
return target
}
if (target.indexOf('?') < 0) {
target += '?'
} else {
Expand Down Expand Up @@ -280,6 +283,9 @@ utils.extend(Chunk.prototype, {
var query = utils.evalOpts(this.uploader.opts.query, this.file, this, isTest)
query = utils.extend(this.getParams(), query)

// processParams
query = this.uploader.opts.processParams(query)

var target = utils.evalOpts(this.uploader.opts.target, this.file, this, isTest)
var data = null
if (method === 'GET' || paramsMethod === 'octet') {
Expand Down Expand Up @@ -371,7 +377,7 @@ var event = _dereq_('./event')
var File = _dereq_('./file')
var Chunk = _dereq_('./chunk')

var version = '0.3.2'
var version = '0.4.0'

var isServer = typeof window === 'undefined'

Expand Down Expand Up @@ -469,6 +475,9 @@ Uploader.defaults = {
initialPaused: false,
processResponse: function (response, cb) {
cb(null, response)
},
processParams: function (params) {
return params
}
}

Expand Down
Loading

0 comments on commit a0d5288

Please sign in to comment.