Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get mimeType in Javascript

const body = {profilepic:e.target.result};
let mimeType = body.profilepic.match(/[^:]w+/[w-+d.]+(?=;|,)/)[0];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #mimeType #Javascript
ADD COMMENT
Topic
Name
1+3 =