Skip to content

Image upload is not working #550

@floufille

Description

@floufille

Version

  • NodeBB v4.8.1
  • Composer Quill 4.0.1
  • node v22.18.0
  • npm 10.9.3
  • mongo 8.0.19

During the upload of an image

Image

Button "Sent" is not clickable anymore:

Image

With the following error:

nodebb.min.js?v=9fa862e4008:141 Uncaught TypeError: app.alert is not a function
    at nodebb.min.js?v=9fa862e4008:141:93151
    at Array.forEach (<anonymous>)
    at nodebb.min.js?v=9fa862e4008:141:93135
    at dispatch (nodebb.min.js?v=9fa862e4008:83:41303)
    at nodebb.min.js?v=9fa862e4008:83:39141
    at Object.trigger (nodebb.min.js?v=9fa862e4008:84:1108)
    at nodebb.min.js?v=9fa862e4008:84:1730
                $(window).on("action:composer.uploadStart", (a, u) => {
                    u.files.forEach(r => {
                        app.alert({
                            alert_id: f(u.post_uuid, r.filename),
                            title: r.filename.replace(/\d_\d+_/, ""),
                            message: u.text
                        })
                    }
                    )
                }
                ),

Here: https://github.com/NodeBB/nodebb-plugin-composer-quill/blob/master/static/lib/quill-nbb.js#L133

Probably due to the release note in nodeBB : * deprecate app.alert functions user alerts module directly (0428912c)
https://github.com/NodeBB/NodeBB/blob/v4.x/CHANGELOG.md?plain=1#L9380

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions