Created
March 21, 2018 13:14
-
-
Save AshikNesin/7bb87fa1c3d2416c6d21d58ca49dcca9 to your computer and use it in GitHub Desktop.
Get URL of the selected file
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
$('#file-upload').change(function(e) { | |
const file = e.target.files[0] | |
console.log(URL.createObjectURL(file)) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment