Saving image from data:img |
Hi,
I want to save an image in the public folder "img/signatures" created with canva / js from data:image string. Code: PHP Code: $noteId = 16; I get this error: PHP Code: ErrorException How to solve this? Thank you
In your controller,
PHP Code: $data = $this->input->post('image'); //or $_POST["image"]; then you can use your $data and save it in such a scenario : Code: $imageName = $new_name.'-'.time().'.png'; |
Welcome Guest, Not a member yet? Register Sign In |