You need to sign in to do that
Don't have an account?
bakul.patel
Uploading a file using lightning component
I am trying to upload a file using lightning component. I do have good understanding of the code involved, but for some reason the I try to get "files" from the input element type=file, it returns undefined.
Anybody has file uploading working through lightning?
var fileInput = document.getElementById("file1"); var file = fileInput.files;I get undefined in 2nd line.
Anybody has file uploading working through lightning?