How can I send a file to upload from my JavaScript form? All my text inputs are sent to the server with Vue Resource AJAX requests, but I haven't been able to figure out, how I'm sending data from <input type="file">?
If you're uploading with Ajax via JavaScript (vue resourse is a wrapper for JavaScript Ajax) you don't need to use encrypt type in your form element. Matter of fact you don't need a form element tag at all, but should for proper HTML and action and method are also not required.