Upload a blob file created using javascript to a php server
Javascript: let myFile = new Blob(["A file"], { type: "text/plain"}); fetch("server_location.php", { method: "POST", body: myFile, headers: { "Content-Type": "text/plain" }).then((res) => { return res.text(); }.then((text) => { console.log(text) }; Php: <?php var_dump($_FILES) Required Should show the file in the file array Output array (0) Please give me a solution so that I can upload… Read More Upload a blob file created using javascript to a php server