editor-js / image

Image Block for Editor.js
MIT License
234 stars 282 forks source link

How to Save image backend PHP #88

Closed tojobbws closed 4 years ago

tojobbws commented 4 years ago

I have followed the example but cannot work.

const editor = new EditorJS({
        autofocus: true,
        tools: {
            embed: Embed,
            image: {
                class: ImageTool,
                config: {
                    endpoints: {
                        byFile: 'http://localhost/editor/uploadfile.php' // Your backend file uploader endpoint

                    }
                }
            }
        }
    });

In uploadfile.php

<?php print_r($_FILE); ?>

kaaaaaaaaaaai commented 4 years ago

is typo? $_FILES

tojobbws commented 4 years ago

Thank you I forgot S $_FILE > $_FILES

is typo? $_FILES

kaaaaaaaaaaai commented 4 years ago

np. im glad the problem is solve. ^-^b

could you close this issue if there are not any problems.