@ -1375,9 +1375,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
var CHUNK _DEFAULT _OPTIONS = {
headers : {
'Content-Type' : 'application/json'
} ,
headers : { } ,
action : '' ,
minSize : 1048576 ,
maxActive : 3 ,
@ -4358,7 +4356,7 @@ module.exports = ImageCompressor;
Object . defineProperty ( _ _webpack _exports _ _ , "__esModule" , { value : true } ) ;
/* harmony import */ var _ _WEBPACK _IMPORTED _MODULE _0 _ _babel _loader _presets _env _modules _false _stage _0 _plugins _transform _runtime _helpers _false _polyfill _false _regenerator _true _moduleName _babel _runtime _cacheDirectory _false _node _modules _vue _loader _lib _selector _type _script _index _0 _FileUpload _vue _ _ = _ _webpack _require _ _ ( 12 ) ;
/* empty harmony namespace reexport */
/* harmony import */ var _ _WEBPACK _IMPORTED _MODULE _1 _ _node _modules _vue _loader _lib _template _compiler _index _id _data _v _ 56571c4e _hasScoped _false _preserveWhitespace _false _buble _transforms _node _modules _vue _loader _lib _selector _type _template _index _0 _FileUpload _vue _ _ = _ _webpack _require _ _ ( 52 ) ;
/* harmony import */ var _ _WEBPACK _IMPORTED _MODULE _1 _ _node _modules _vue _loader _lib _template _compiler _index _id _data _v _ 167f252c _hasScoped _false _preserveWhitespace _false _buble _transforms _node _modules _vue _loader _lib _selector _type _template _index _0 _FileUpload _vue _ _ = _ _webpack _require _ _ ( 52 ) ;
function injectStyle ( ssrContext ) {
_ _webpack _require _ _ ( 46 )
}
@ -4378,7 +4376,7 @@ var __vue_scopeId__ = null
var _ _vue _module _identifier _ _ = null
var Component = normalizeComponent (
_ _WEBPACK _IMPORTED _MODULE _0 _ _babel _loader _presets _env _modules _false _stage _0 _plugins _transform _runtime _helpers _false _polyfill _false _regenerator _true _moduleName _babel _runtime _cacheDirectory _false _node _modules _vue _loader _lib _selector _type _script _index _0 _FileUpload _vue _ _ [ "a" /* default */ ] ,
_ _WEBPACK _IMPORTED _MODULE _1 _ _node _modules _vue _loader _lib _template _compiler _index _id _data _v _ 56571c4e _hasScoped _false _preserveWhitespace _false _buble _transforms _node _modules _vue _loader _lib _selector _type _template _index _0 _FileUpload _vue _ _ [ "a" /* default */ ] ,
_ _WEBPACK _IMPORTED _MODULE _1 _ _node _modules _vue _loader _lib _template _compiler _index _id _data _v _ 167f252c _hasScoped _false _preserveWhitespace _false _buble _transforms _node _modules _vue _loader _lib _selector _type _template _index _0 _FileUpload _vue _ _ [ "a" /* default */ ] ,
_ _vue _template _functional _ _ ,
_ _vue _styles _ _ ,
_ _vue _scopeId _ _ ,
@ -4399,7 +4397,7 @@ var content = __webpack_require__(47);
if ( typeof content === 'string' ) content = [ [ module . i , content , '' ] ] ;
if ( content . locals ) module . exports = content . locals ;
// add the styles to the DOM
var update = _ _webpack _require _ _ ( 2 ) ( " 5c4b1e14 ", content , true , { } ) ;
var update = _ _webpack _require _ _ ( 2 ) ( " 1926ac1c ", content , true , { } ) ;
/***/ } ) ,
/* 47 */
@ -4490,6 +4488,16 @@ var ChunkUploadHandler = function () {
key : 'pause' ,
value : function pause ( ) {
this . file . active = false ;
this . stopChunks ( ) ;
}
/ * *
* Stops all the current chunks
* /
} , {
key : 'stopChunks' ,
value : function stopChunks ( ) {
this . chunksUploading . forEach ( function ( chunk ) {
chunk . xhr . abort ( ) ;
chunk . active = false ;
@ -4543,7 +4551,7 @@ var ChunkUploadHandler = function () {
Object ( _ _WEBPACK _IMPORTED _MODULE _0 _ _utils _request _ _ [ "b" /* default */ ] ) ( {
method : 'POST' ,
headers : Object . assign ( this . headers , {
headers : Object . assign ( { } , this . headers , {
'Content-Type' : 'application/json'
} ) ,
url : this . action ,
@ -4621,9 +4629,7 @@ var ChunkUploadHandler = function () {
this . updateFileProgress ( ) ;
chunk . xhr = Object ( _ _WEBPACK _IMPORTED _MODULE _0 _ _utils _request _ _ [ "a" /* createRequest */ ] ) ( {
method : 'POST' ,
headers : Object . assign ( this . headers , {
'Content-Type' : 'multipart/form-data'
} ) ,
headers : this . headers ,
url : this . action
} ) ;
@ -4644,7 +4650,7 @@ var ChunkUploadHandler = function () {
chunk . uploaded = true ;
} else {
if ( chunk . retries -- <= 0 ) {
_this3 . pause ( ) ;
_this3 . stopChunks ( ) ;
return _this3 . reject ( 'upload' ) ;
}
}
@ -4653,7 +4659,7 @@ var ChunkUploadHandler = function () {
} ) . catch ( function ( ) {
chunk . active = false ;
if ( chunk . retries -- <= 0 ) {
_this3 . pause ( ) ;
_this3 . stopChunks ( ) ;
return _this3 . reject ( 'upload' ) ;
}
@ -4675,7 +4681,7 @@ var ChunkUploadHandler = function () {
Object ( _ _WEBPACK _IMPORTED _MODULE _0 _ _utils _request _ _ [ "b" /* default */ ] ) ( {
method : 'POST' ,
headers : Object . assign ( this . headers , {
headers : Object . assign ( { } , this . headers , {
'Content-Type' : 'application/json'
} ) ,
url : this . action ,