Article From:https://segmentfault.com/q/1010000012988447
Question:
<el-upload
        class="upload-demo"
        ref="upload"
        drag
        action="/api/expert/batch/insert"
        :headers="header"
        accept=".doc,.xls"
        :auto-upload="false"
        multiple>
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">Drag the files here, or < em> click upload < /em> < /div>< div class= "el-upload__tip" slot= "tip" >Only upload doc, xls file < /div>< /el-upload>Export default {Data: function () {Return {Header:{'Accept':'application/json',''X-auth-token': localStorage.getItem (TOKEN_KEY),},}},

And another mistake

Answer 0:

400It is returned by the back end, and maybe the back end has some problems with the uploaded data processing.

Link of this Article: Vue upload newspaper 400 error

Leave a Reply

Your email address will not be published. Required fields are marked *