php Blob url to directory

throught ajax send a blob url

        var blob = new Blob([content], { type: 'text/html; charset=utf-8' });
        var urlBlob = URL.createObjectURL(blob);
            url: url,
            data: { 
                'blob': urlBlob
            type: 'POST',
            dataType: 'json',
            success: function (data) {
            , error: function () {

in php i read this string blob:http://localhost:8888/4eca0076-33c8-42ab-bd96-11055dcf800f

now i'd like to save in a dir.... I tried

$file = fopen($filepath, "w");
fwrite($file, base64_decode($blob));


move_uploaded_file(base64_decode($blob), $filepath);

but write a strange characters

file_put_contents($filepath, base64_decode($blob));

don't works

do you ha ve idea?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum