[Vuejs]-What could corrupt all files I upload using base64?

1👍

Looks like you are trying to decode the wrong thing.

$base = base64_decode($file);

$file still contains the full Data URI, data:image/png;base64,ABCD… – what you want to decode, is the ABCD… part only.

👤04FS

Leave a comment