Created
January 30, 2020 15:24
-
-
Save JwanKhalaf/9e00aa9cdecb580990d13c687be92897 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let formData = new FormData(document.querySelector('#request-for-change-form')); | |
console.log(selectedFiles); | |
for (var i = 0; i < selectedFiles.length; i++) { | |
formData.append("files[]", selectedFiles[0]); | |
} | |
console.log(formData.getAll('files[]')); | |
$("#request-for-change-form").submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment