Issues with Private File Uploads

3 months ago by Gawk1873 to c/general-discussion

When you upload a private image, anyone with the link can still view it. Isn't this feature supposed to require certain conditions to access the uploaded content, as I had imagined?

jasonwch 1 point 3 months ago

@gawk1873 I've wrote a plugin which may help. You can try

npm install nodebb-plugin-attachment-privileges

This plugin is very simple, it will allow user to view/download attachment only if they have "Topic access" to that category. While using this, you can turn off NodeBB core Private Download function. Because if guest do not have access to that category, it won't be able to access those attachments as well

6614aca8-e671-4367-81aa-4d39d01647b4-image.jpeg

6614aca8-e671-4367-81aa-4d39d01647b4-image.jpeg

path: 0 25028230, hotness: undefined, score: 1, children: 0
jasonwch 1 point 3 months ago

NodeBB have 1 simple swtich to allow/disallow guest to view uploads, but logged in users will also able to see all. You need a plugin to control that.

path: 0 25560926, hotness: undefined, score: 1, children: 0
general-discussion
general-discussion

@community.nodebb.org

login for more options
0
121
16

A place to talk about whatever you want

go to feed...