vue-upload-component icon indicating copy to clipboard operation
vue-upload-component copied to clipboard

Issue with sending post action

Open nexequ opened this issue 7 years ago • 1 comments

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.

nexequ avatar Dec 26 '17 15:12 nexequ

+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...

Orange-Men avatar Jan 15 '20 12:01 Orange-Men