[nodebb-plugin-imgur] Imgur Plugin
-
@DanaGriffin said:
@a_5mith is there a reason why I can do it on the website then? here is a scanned pdf on imager.
edit: looks like it converts it to a png...huh
Can you upload other files no problem? Not sure if the imgur plugin works with PDF in that case then. Not sure if it uses "allowed" file types.
-
Some observations,
In community nodebb forums, the image uploads i made have the https url (https://i.imgur.com/WUSfO3l.jpg) , however in my own hosted forums, the images i upload have the http url,
eg: http://i.imgur.com/yieHx4c.png
how do i configure it to auto use the https url?
-
Was getting this error:
19/11 13:33 [6867] - error: [plugins] Problem executing hook: filter:uploadImage err: Error at Request._callback (/srv/forums/node_modules/nodebb-plugin-imgur/index.js:104:15) at Request.self.callback (/srv/forums/node_modules/request/request.js:372:22) at Request.emit (events.js:98:17) at Request.<anonymous> (/srv/forums/node_modules/request/request.js:1317:14) at Request.emit (events.js:117:20) at IncomingMessage.<anonymous> (/srv/forums/node_modules/request/request.js:1265:12) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:943:16 at process._tickDomainCallback (node.js:463:13)
Using latest (as of yesterday night) nodebb 0.6.x and version of latest plugin.
-
Couldn't repro this, but I went ahead and updated the dependencies on the imgur plugin. The new version is 0.1.2. I can upload images fine with that version and nodebb commit https://github.com/NodeBB/NodeBB/commit/8d8731c609cc470d4cba6d477d914fc17b850c37
-
Took a look into this, it is caused by this change https://github.com/NodeBB/NodeBB/commit/969c3a77cf3eb3327402df731c9152ac8cd626e2.
The plugins for filter:uploadImage doesn't send the passed in data as is but only returns an object that is
{url: 'uploaded url', name: 'file name if any'}
This is quite different than other plugins that pass back whatever is sent in. Obviously that doesn't work for upload plugins. For example you pass in a file object that points to a tmp file on disk and get back an url.I'll revert that change for now and use the correct data.url property.
-
Updated to latest tonight and getting an error again. @baris was anything changed?
1/12 22:01 [18479] - error: [plugins] Problem executing hook: filter:uploadImage err: Error at Request._callback (/srv/forums/node_modules/nodebb-plugin-imgur/index.js:104:15) at Request.self.callback (/srv/forums/node_modules/request/request.js:372:22) at Request.emit (events.js:98:17) at Request.<anonymous> (/srv/forums/node_modules/request/request.js:1317:14) at Request.emit (events.js:117:20) at IncomingMessage.<anonymous> (/srv/forums/node_modules/request/request.js:1265:12) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:943:16 at process._tickDomainCallback (node.js:463:13)
-
I tried installing this plugin today but I am getting this error as soon as I hit the install button:
Failed to parse json Unexpected token <
This is on NodeBB v0.5.7 hosted on nodebb.com
EDIT: after upgrading to 0.6.0 it is working
-
do images ever expire on imgur?
-
@baris said:
I think they used to delete if the image was not accessed at least once every six months. But they changed it so they never delete an image unless requested.
Can confirm. Imgur indeed doesn't delete unless requested. The screenshots I made and uploaded by ShareX from 3 months ago are still able to be seen.