Wordpress Javascript Blob insert mysql in PHP Posted February 16, 2020 Hello everyone, i have created a html form and a button. Javascript reacts to the button click sends the html values to functions.php and there i have a function to insert into the wordpress database. Every field is working and is being inserted into the database but i have some problems to upload and save a image file with these steps. Iam not using a html form i wanted to go the javascript way. Is there any option/solution to insert an image file as blob into mysql using php without form submit just via javascript ajax ? Thanks and best regards, Atilla
Wordpress Javascript Blob insert mysql
in PHP
Posted
Hello everyone,
i have created a html form and a button.
Javascript reacts to the button click sends the html values to functions.php and there i have a function to insert into the wordpress database.
Every field is working and is being inserted into the database but i have some problems to upload and save a image file with these steps.
Iam not using a html form i wanted to go the javascript way.
Is there any option/solution to insert an image file as blob into mysql using php without form submit just via javascript ajax ?
Thanks and best regards,
Atilla