Mercurial > gemma
comparison client/src/components/importschedule/Importscheduledetail.vue @ 2241:5529e1f08dba
import_queue: ubn used correct endpoint
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 13 Feb 2019 15:16:12 +0100 |
parents | b1735b09df6f |
children | dedd7bbee846 |
comparison
equal
deleted
inserted
replaced
2240:c3cc21dee75d | 2241:5529e1f08dba |
---|---|
665 }, | 665 }, |
666 triggerBottleneckFileUpload() { | 666 triggerBottleneckFileUpload() { |
667 if (!this.uploadFile) return; | 667 if (!this.uploadFile) return; |
668 let formData = new FormData(); | 668 let formData = new FormData(); |
669 formData.append("ubn", this.uploadFile); | 669 formData.append("ubn", this.uploadFile); |
670 HTTP.post("/imports/ubn", { | 670 HTTP.post("/imports/ubn", formData, { |
671 headers: { | 671 headers: { |
672 "X-Gemma-Auth": localStorage.getItem("token"), | 672 "X-Gemma-Auth": localStorage.getItem("token"), |
673 "Content-type": "text/xml; charset=UTF-8" | 673 "Content-Type": "multipart/form-data" |
674 } | 674 } |
675 }) | 675 }) |
676 .then(response => { | 676 .then(response => { |
677 const { id } = response.data; | 677 const { id } = response.data; |
678 displayInfo({ | 678 displayInfo({ |