image icon indicating copy to clipboard operation
image copied to clipboard

PHP+Apache Server, the image is here: $_FILES

Open seeeeebas opened this issue 3 years ago • 1 comments

Just spent several houres trying to figure out there the image sent from JS was. The image is not in the php://input nor in the $_POST. Other from that thanks alot for this awersome editor. Cheers.

###img itself $img='data:'.$_FILES['image']['type'].';base64, '.base64_encode(file_get_contents($_FILES['image']['tmp_name']));

###response to JS $res=[]; $res['success']=1; $res['file']=[]; $res['file']['url']=$img; echo json_encode($res); exit;

seeeeebas avatar Feb 18 '22 11:02 seeeeebas

@seeeeebas you just saved me from a v.large headache. Thank you

tom-byrom avatar Jun 11 '22 21:06 tom-byrom