Open KoljaL opened 4 years ago
Using your code I was able to upload an image. Double-check your code reaches the echo json_encode(...);
and does not fail on move_uploaded_file
Hi Ionaru,
the upload works, but the link to the image will not be insert.
And yes, the echo json_encode
will be reached, because i tried some different ways to make filepath:
{"data":{"filePath":"\\data\\Book_Logo.png"}}
{"data":{"filePath":"data\\admin.png"}}
As i wrote, the images are getting uploaded (, if the filepath is written correctly).
Do you have any other wrking example in PHP? On github i only found a one in python.
Thanks for your help.
I got this message after uploading an image:
EasyMDE: The server did not return a valid json.
My code is the following:
and in the img_upload.php:
The images are getting uploaded, but there will be no link insert in the Textfield, instead i got an error message and the json code loos so: