Preview PDF/Image file before upload

علی ذوالفقار
1402/04/17 14:46:54 (122)
// get base64 
src= URL.createObjectURL(event.target.files[0])
// preview 
< embed src=src width="250" height="200" />
Back