Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript Image Preview Before Upload

imgInp.onchange = evt => {
  const [file] = imgInp.files
  if (file) {
    blah.src = URL.createObjectURL(file)
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #Image #Preview #Before #Upload
ADD COMMENT
Topic
Name
1+6 =