1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Restricting Attachment Uploads

Discussion in 'Troubleshooting and Problems' started by ElgrandOC, Oct 20, 2015.

  1. ElgrandOC

    ElgrandOC Member

    I am having an issue with restricting the ability to upload attachments to posts.

    I have limited server space available, so what I am wanting to do is turn off the attachment upload for all users except anyone who has paid for membership. The thought process being that those who have paid to join and help fund the site are contributing to the server space required to host the files.

    Now, I understand that restriction of this is set using the group permissions.

    The "Registered" group is set as below:

    The "Premium Member" group is set as below:


    So, in theory, anyone who is set to "Registered" members as default should NOT be able to post attachments, those set with a secondary group as "Premium Member" SHOULD be able to post attachments.

    Have I got that logic correct? Because that is not what is happening.

    If I leave the permissions as above, "Registered" users with NO secondary user groups can still upload files.

    I have had to set the "Registered" group to "NEVER" for attaching files. This means that whenever someone upgrades their account, I have to batch update all the primary user groups from "Registered" to "Premium" and remove all secondary user groups.

    This works fine in itself, and not really a big job to maintain... BUT when that users upgrade expires, it does not change the Primary group back to "Registered". All it does is remove the (now not present) secondary group.

    What am I doing wrong?
  2. Martok

    Martok Well-Known Member

    Those settings look correct for user groups.

    Check the node permissions. I'm guessing you have set upload permissions for the Registered group there. I'd suggest setting node permissions to Inherit unless you require them to be different from user group permissions.
  3. ElgrandOC

    ElgrandOC Member

    I didn't know there were node permissions as well as user group permissions. Thanks for that.

    Now, is there a way to batch update the permissions for the "Registered" user group across all the nodes? I don't fancy going through all 83 of them to be honest, but if that's the only way to do it, I will have to.

    Actually... is there a way to set it to "inherit" for ALL user groups across all nodes? Otherwise I can see this taking a long time.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to do it for each node/user group combination.
  5. ElgrandOC

    ElgrandOC Member


    Thank you for the exceptionally quick replies guys. Your help is very much appreciated :)
  6. ElgrandOC

    ElgrandOC Member

    Spent 2 hours last night going through one by one and set them all. I'm glad this stuff doesn't need touching once it's set up!

    Once again, thanks for your help.

Share This Page