Answers for "axios upload file form-data nodejs"

0

upload file axios

uploadFile: function (event) {
    const file = event.target.files[0]
    axios.post('upload_file', file, {
        headers: {
          'Content-Type': file.type
        }
    })
}
Posted by: Guest on March-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language