Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

upload file axios

uploadFile: function (event) {
    const file = event.target.files[0]
    axios.post('upload_file', file, {
        headers: {
          'Content-Type': file.type
        }
    })
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #upload #file #axios
ADD COMMENT
Topic
Name
1+1 =