Welcome Guest, Not a member yet? Register   Sign In
Tinymce 4.9.8 upload image
#5

(This post was last modified: 08-27-2020, 02:22 PM by anturom.)

By looking at your code, most probably the image location returned in the JSON object does not exist, because you are building it from $imageFolder, which uses a relative path. 

To the point, instead of this

PHP Code:
$img = [
         'location' => $filetowrite
       
]; 

try to use this:

PHP Code:
$img = [
         'location' => base_url('public/blog_img/') . $temp['name']
       ]; 

If it still does not work, consider installing Fiddler (or some equivalent HTTP traffic monitoring tool) to debug what's going on. This will let you see the exact HTTP response that gets returned. 
Reply


Messages In This Thread
Tinymce 4.9.8 upload image - by falcon812311 - 08-26-2020, 09:21 AM
RE: Tinymce 4.9.8 upload image - by InsiteFX - 08-27-2020, 05:09 AM
RE: Tinymce 4.9.8 upload image - by falcon812311 - 08-27-2020, 07:16 AM
RE: Tinymce 4.9.8 upload image - by InsiteFX - 08-27-2020, 08:28 AM
RE: Tinymce 4.9.8 upload image - by anturom - 08-27-2020, 02:10 PM
RE: Tinymce 4.9.8 upload image - by argaLion - 07-13-2022, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB