For anyone using NodeBB to upload a screenshot from node.js
const buffer = await createImage({ path: `screenshot/annotation:${ annotationID }` , encoding: 'binary' }) const result = await rp({ url: `${ endpoint }/util/upload?_uid=${ _uid }`, method: 'POST', json: true, headers: { Authorization , 'Content-Type': 'multipart/form-data' }, formData: { 'files[]': { value: buffer, options: { filename: `annotaion-${ annotationID }.jpg`, contentType: 'image/jpg' } } }, })Install plugin
-
Hello to all the friends.
I'm trying to install this plugin from here:
https://community.nodebb.org/topic/211/nodebb-plugin-youtube-youtube-embed-plugin/2?_=1581262595769I did as it was written.
But it's not turned on for me.what could happen?
-
My version:
nodebb v 1.13.2@psychobunny You are the creator
Does it really not fit the version?