josefph

Results comments of josefph

@JulyanoF okay bro I'll check it. what does the setStepsBeforeSave mean?

@JulyanoF I'm getting this error while trying to save an image. Failed to load http://localhost/grapesjs-dev/savetodb.php: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on...

@JulyanoF what data should I return? @arthuralmeidap actually it's running on the same port. I was mistakenly editing a different savetodb.php file hahaha my bad

@JulyanoF okay i'll try that after the CORS error. thanks for the help

@JulyanoF deleted my comment. got it working now but now i'm getting unexpected token in JSON

@arthuralmeidap got it working already guys. I wasn't opening the app in localhost but opened the html file. so its getting the error. now i'm getting the unexpected token in...

@arthuralmeidap ` $file = ["src" => pathtoimage'], "width" => 150, "height" => 150]; return json_encode($file); ` this is what I am returning in my php file and also $_FILES['file'] is...

@JulyanoF okay ill try that. but i'm getting index not found in $_FILES['file']

@JulyanoF thank you for the great help. got it working now. @arthuralmeidap thank you for the help. got it working now.