check add person photo finish
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<form runat="server">
|
||||
<input accept="image/*" type='file' id="imgInp" />
|
||||
<img id="blah" src="#" alt="your image" />
|
||||
</form>
|
||||
|
||||
|
||||
imgInp.onchange = evt => {
|
||||
const [file] = imgInp.files
|
||||
if (file) {
|
||||
blah.src = URL.createObjectURL(file)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user