Skip to content
Advertisement

Tag: strip

How to strip type from Javascript FileReader base64 string?

I’ve got the following code in my Javascript: This shows me the following data: The thing is that I only want the part after the comma. I tried getting it from reader.result.value, reader.result.valueOf() and some other combinations, but can’t find the correct one to JUST get the base64 string starting from after the comma. So a second idea is to

Advertisement