Registered user cannot upload files

Hi all, I changed the default upload permissions to allow all registered users to upload files instead of only users in group “Admins”. As a registered user I then created page, but the “upload file” link is not shown on the page.



However, as an admin, the page permissions show file upload is allowed by any registered user (iiuc).



Also, as an admin, I had created several pages before changing the default permissions and (as an admin) changed the permissions on each of these page to allow registered users to upload files. However, as a non-admin registered user, the “upload files” link is also not shown.



What am I missing?


Cheers (and best wishes of the season to everyone!),
Dale

Comments

  1. Re: Registered user cannot upload files

    I run some test locally and it all worked as expected.
    It let me upload files as just registered user.

    Did you also authorized registered users to upload files generally?

    See can_upload() function in Wacko class for details.

    Possible error sources:
    • the user must have also write rights to upload a file to a page
    • registered users must generally be authorized to upload files (see Admin panel -> Upload -> Right to upload files: upload)

    It checks not only the page ACLs but also the gneral upload setting in the secondary config and always takes the most strict right. This ensures that the right to upload files can be restricted or disabled globally.

    attachment settings module

    The page upload permission was added to allow the page owner or admin to further restrict the file upload to that page.

    WackoWiki Permissions [access control lists]
    • WikiAdmin
    • 26.12.2024 07:34 edited
  2. Re: Registered user cannot upload files

    Ah, I had missed the “Right to upload files”. This allowed me to progress, but there might still be an issue.

    I changed the value from “Admins” to “registered users” and the files link is now shown to non-admin registered user.



    and a file can be selected for upload,



    but uploading is rejected reportedly because the file is too large (note I did not change “Maximum file size” from default value 0 Bytes since the description indicated 0 was treated as unlimited).



    Then I changed “Maximum file size” to 1 MB and the user was allowed to upload the file.
  3. Re: Registered user cannot upload files

    I'll look into the 0 value issue for the maximum file size.


    Thanks, I just hope I haven't misunderstood documentation I haven't read yet ;-)

    If you think there is something missing in the documentation, please fix it.


    Will do! :-)
Log in or create an account to post a comment.