how can one intercept the upload so the data sent to the editor is something other than the default markup. of filename and description.
Yep, I see the issue. I'm not looking to push any changes. It was more out of curiosity on why there are several different names within essentially the same function.
@mana Thank you
@pitaj Many thanks for your effort 🙏
Okay so I just npm link'ed my plugin again so I thought some file will be updated. But they weren't.
Here is my full source code of libary.js:
I tried it with path again:
an suddenly ... it worked! o.O
I think it was really because I ran npm link again. Funny.* I'm sorry. Most of the time, the problem is in front of the computer. 🙄
But still a strange behavior in my opinion. Well ... Good to know for the future. @PitaJ as mentioned thank you for you effort. 🙏
For any others having the same issue:
@v_risalab You can use the hook filter:account/profile.build to add data to the page.
You can use the same code from the info controller to get the ban data.
I will need upload functional in future plugin.
Is there any Upload API already in NodeBB ready for plugins use?
I would like to use ready to use solution, if any, before I will do it myself 😉