File tree Expand file tree Collapse file tree
resources/assets/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ export default
298298 }
299299 let formData = new FormData ()
300300 for (let i = 0 ;i < this .selectedFiles .length ;i++ ) formData .append (' id[' + i+ ' ]' , this .selectedFiles [i].id )
301- client .post (this .settings .url + ' attachment/attachments/deleteAll.json ' , formData, params)
301+ client .post (this .settings .url + ' attachment/attachments/deleteAll' , formData, params)
302302 .then (this .deleteSuccess , this .deleteError )
303303 }
304304 },
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ export default {
327327 }
328328
329329 client .post (
330- ` ${ this .settings .url } attachment/attachments/edit/${ attachment .id } .json ` ,
330+ ` ${ this .settings .url } attachment/attachments/edit/${ attachment .id } ` ,
331331 formData,
332332 params
333333 )
@@ -366,7 +366,7 @@ export default {
366366 let params = {
367367 headers: {' Accept' : ' application/json' , ' Content-Type' : ' multipart/form-data' },
368368 }
369- client .post (this .settings .url + ' attachment/attachments/edit-all.json ' , this .selectedFiles , params)
369+ client .post (this .settings .url + ' attachment/attachments/edit-all' , this .selectedFiles , params)
370370 .then (this .editSuccess , this .editError )
371371 },
372372 editSuccess (){
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default
116116 progress: this .progressHandler
117117 }
118118
119- client .post (this .settings .url + ' attachment/attachments/add.json ' , formData, params)
119+ client .post (this .settings .url + ' attachment/attachments/add' , formData, params)
120120 .then (this .uploadSuccessCb , this .errorUploadCb )
121121 },
122122 progressHandler : function (e )
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ export default
228228 onUploadProgress: this .progressHandler
229229 }
230230 if (this .firstUploadTime === 0 ) this .firstUploadTime = new Date ().toISOString ().slice (0 , 19 ).replace (' T' , ' ' );
231- client .post (this .settings .url + ' attachment/attachments/add.json ' , formData, params)
231+ client .post (this .settings .url + ' attachment/attachments/add' , formData, params)
232232 .then (this .uploadSuccessCb , this .errorUploadCb )
233233 },
234234 progressHandler : function (e )
You can’t perform that action at this time.
0 commit comments