Bonjour,
je cherche à récupérer et stocker une image en application/stream et faire comme si c'était un $_FILE.
Quelqu'un a t-il une idée?
$datastring = file_get_contents('php://input');
$image = imagecreatefromstring($datastring );
Bonjour,
je cherche à récupérer et stocker une image en application/stream et faire comme si c'était un $_FILE.
Quelqu'un a t-il une idée?
$datastring = file_get_contents('php://input');
$image = imagecreatefromstring($datastring );
voilà comment tu peux faire l'upload de n'importe quel fichier:
Partager