@fortunato I forgot to say that this error doesn't show up when creating a new topic and sometimes it works also in replies. The error in the NodeBB UI is the following: "stream ended unexpectedly"
6c6ff98f-95d8-4ad4-b402-b7a336cf47e7-image.png
Hi there
I'm trying to upload file in JS
I'm running this code in the console:
require(['uploader'], uploader => {
uploader.show({ route: '/api/post/upload' }, console.log)
})
And the file uploaded, but the console return error:
uploader.js:99 Uncaught TypeError: Cannot read properties of undefined (reading 'url')
In this location https://github.com/NodeBB/NodeBB/blob/master/public/src/modules/uploader.js#L99
What needs fixing?
Thanks