We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use FormData() for uploading a file?
<div class="form-group"> <div class="col-md-8 col-md-offset-4"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div>
return new Promise((resolve, reject) => { axios.post(Config.apiPath + 'post', form,{headers: { 'Content-Type': 'multipart/form-data'}}) .then( response => { commit('STORE_POST_OK', response.data.post) resolve() }) .catch(error => { commit('STORE_POST_FAIL') reject(error.response.data) })
How I use FormData()?
let formData = new FormData(); formData.append('file', this.form.file);
The text was updated successfully, but these errors were encountered:
It's not related to this project. Just google it http://letmegooglethat.com/?q=How+to+use+FormData()+for+uploading+a+file
Sorry, something went wrong.
No branches or pull requests
How to use FormData() for uploading a file?
How I use FormData()?
The text was updated successfully, but these errors were encountered: