I'm uploading the formData and somehow I'm getting a empty file on the headers using this
var formData = new FormData(document.getElementById('creationForm'));
console.log(file);
formData.append("fileUpload", file);
It just doesn't work when i do the drag and drop. So how do I append the file to the actual input that is on the creationForm?
<input type="file" name="fileUpload" id="fileUpload" class="hide"/>