NodeBB have a work plugin for upload files on S3?

NodeBB Plugins
  • I try 2 plugin and upload not work...

    1. https://github.com/dasmeta/nodebb-plugin-upload

    This plugin show error in composer when try upload file:

    [123.txt](@dasmeta/nodebb-plugin-upload :: Missing required key 'Bucket' in params) 
    

    but I am set a bucket name in setting 😞

    1. https://github.com/NodeBB-Community/nodebb-plugin-s3-uploads

    This plugin everytime show "Error saving!" in ACP.

  • The S3 plugin is a bit strange as there are a few variants as a lot of them appear to be forked and then abandoned again.

    We were originally going to look at redeveloping our own plugin but found this one worked for our needs and still works in the latest version:

  • updated-again Ha!

    The one under the NodeBB-Community org should be the most compatible with v2, but if there are issues, please let me know.

    As far as I know, the admin panel should be working...

  • @Matthew-Price

    Wow! Thank you! This plugin work correctly, he is save information in ACP without errors and I can upload my first file ♥

  • @Matthew-Price

    Do you know if this plugin can be configured to upload files to an S3 compatible gateway?

    The provider informs that we need to specify the address of the endpoint site in the settings, but this option is not provided in this plugins for NodeBB...

    Uploading to AWS works good, but they only give 5GB of free storage, and the decentralized provider is as much as 150GB, the Discourse forums have an endpoint setting out of the box and there is a plugin for Flarum that allows you to configure this and cdn url.

    Very handy for example for automatic backups to the cloud and 150GB is a very generous storage space for the free plan, users can upload many pictures, videos, audio...

  • UPD

    On 3.0.0 version NodeBB all this plugins didn't work, the ACP (admin/plugins/s3-uploads) show error req.csrfToken is not a function 😞

    @dasmeta/nodebb-plugin-upload
    @NodeBB-Community/nodebb-plugin-s3-uploads
    @nodebb-plugin-s3-uploads-updated-again

    And after installed this plugins, the console show alert about npm packages vulnerabilities... it's not good.

    [email protected]:/var/www/forum/nodebb# npm install NodeBB-Community/nodebb-plugin-s3-uploads
    npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
    npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
    npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
    npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
    npm WARN deprecated [email protected]: Use uuid module instead
    npm WARN deprecated [email protected]: this library is no longer supported
    npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
    npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
    
    added 63 packages, and audited 1559 packages in 14s
    
    180 packages are looking for funding
      run `npm fund` for details
    
    24 vulnerabilities (11 moderate, 11 high, 2 critical)
    
  • It's due to a breaking change in 3.x https://github.com/NodeBB/NodeBB/pull/11237, plugins that use req.csrfToken() will need to be updated.


Suggested Topics