Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if is image

function isFileImage(file) {
    return file && file['type'].split('/')[0] === 'image';
}
Source by roufid.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #image
ADD COMMENT
Topic
Name
9+3 =