Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var getFileName = null
- $('#fileInput').change(function() {
- var props = $('#fileInput').prop('files'),
- file = props[0]
- getFileName = "" + file.name
- console.log("inside function: " + getFileName)
- })
- // selected file
- console.log("outside function: " + getFileName);
Add Comment
Please, Sign In to add comment