vue-upload-component
vue-upload-component copied to clipboard
Issue with sending post action
When post action is not set, component uses default value instead of stop sending post action. It yields with console log error. I want to send my own post action on click, not instantly after upload.
Or maybe there is another option to disable sending default post action?
Another issue is that data sent with default post action is empty. In PHP $_POST and $_FILES is always empty. I have to build formData on my own.
+1 About the second issue. I have to do this:
...
let form = new FormData($event.target);
this.files.forEach((file) => {
form.append('image', file.file, file.name);
});
axios.post(Url, form...