Redactor client does not display image upload errors from server

Technical Support
  • Hi Devs,

    I am running the latest nodebb master, and updated to the latest redactor-composer.

    I tried to upload a file using redactor, but it did not work, and no error message was posted. With further digging I found that the file was too big (higher than the predefined value in the admin page).
    Is there a way to catch and display errors from nodebb callback routed into the Redactor plugin?

    Minor issue, I see that when @media width>1000 Redactor is full page, but the topic title placeholder disappears. Further research identified that the div above it has "display = flex". Unsettling that brings back the title placeholder.

    Thanks,
    JJ.


Suggested Topics


  • How can i upload files to a ftp server?

    Unsolved Technical Support
    1
    0 Votes
    1 Posts
    157 Views

    I want to change the "uploads " from localhost to a ftp server,how can i do this?(i use docker),is this possible?😖 😖 😖 😖

  • 1 Votes
    2 Posts
    1k Views

    Found it 🙂

    https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/topic/post.tpl#L16

    change that line to...

    <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.fullname}</a>

    Full Name is an optional field so not everybody updates it in their profile. You might want to check if it's available before displaying it.

    <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}"><!-- IF posts.user.fullname -->{posts.user.fullname}<!-- ELSE -->{posts.user.username}<!-- ENDIF posts.user.fullname --></a>
  • 0 Votes
    3 Posts
    826 Views

    Would have been nice if we could upload gif in the about me or signature section of the profile.

  • nodebb log has some error

    Technical Support
    3
    0 Votes
    3 Posts
    1k Views

    It looks like you forgot to set the callback url or one of the access keys, and it is just guessing the url to go to.

  • 0 Votes
    6 Posts
    2k Views

    Thanks for the help, but still no joy when running nodebb with pm2

    Edit: take that back all of a sudden its behaving !! 😂