Editor upload files not working.

Editor upload files not working.

naspersgaspnaspersgasp Posts: 53Questions: 14Answers: 1

Hi,

Good day.

The editor node example uploads seem to fail. This is the error I get:

No data detected. Have you used {extended: true} for bodyParser?

Any ideas? Thanks.

Regards.

This question has an accepted answers - jump to answer

Answers

  • naspersgaspnaspersgasp Posts: 53Questions: 14Answers: 1

    There seems to be data passed. I did a console.log for req.body req.files and I get:

    { action: 'upload', uploadField: 'files[].id' }
    { upload:
    { uuid: '31b17bac-f002-464e-8f62-8f2e04f95a50',
    field: 'upload',
    file: '/var/folders/bd/qrnrqbv15kz5dj5lk0hz169m0000gn/T/express-busboy/31b17bac-f002-464e-8f62-8f2e04f95a50/upload/icon72.png',
    filename: 'icon72.png',
    encoding: '7bit',
    mimetype: 'image/png',
    truncated: false,
    done: true } }

    Regards.

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Hi,

    You are right - there is a bug in the current release of the Editor Node libraries I'm afraid. This commit fixes it. You can apply that locally or grab the head stright from git.

    Allan

  • naspersgaspnaspersgasp Posts: 53Questions: 14Answers: 1

    Hi,

    Good day.

    Thanks a bunch for the reply! The example is working. Great stuff.

    Regards.

This discussion has been closed.