hairydog Hi. Thanks for feedback! I think perhaps
hairydog Can we have different URLs for different users. I would like four sorts of user:
I'm really not sure what you mean by this or why you need different urls. Don't they all go to the same application? Much of the point of multi-user logins, is to allow multiple logins from the SAME application (same url). Files Gallery does not and can't create virtual urls like yourapp/{username1}, and I don't see much point int that either ... That's why you actually LOGIN with {username1}. You want to have different url's so that users don't need to login, and instead the url is the login? Even if that was applicable, it certainly wouldn't be secure. Users need to be identified by a login process. If you want different urls to offer different features without login, then this is not a login mechanism, but something you could control by setting up different configs in different folders manually.
hairydog A normal user who logs in with a password and has all the features available.
This is of course one of the existing features of the new login. Just create a new user, add a password, and allow all features in the users config. For example login to the link below with admin / abracadabra. That's a user with all features allowed.
https://demo.files.gallery/users/
hairydog A restricted user (limited to specified features and/or folders)
This is also already how it works. Just create the user and assign the root
option to the dir you want the user to view from. By default, a user is already restricted to view only.
hairydog A read-only user with no need to log in, and read-only rights in specified folders
This is already how it works. If you leave the main _files/config/config.php
without username and password, then the "public" user does not require login, and it's read-only.
hairydog An upload-only user with no login (or maybe just a username, no password, so the username is a label for what is uploaded).
Just create a new user with 'allow_upload' => true,
. There is no such thing as a "user without a login". How will the system know what user is logged in if there is no long? No login, means the optional no-login version (which is your default config.php without username and password). If you want to assign specific features, like upload capabilities, then this needs to be a user, and all users require login and password. It's not possible to "login" with just a username.
hairydog If it was possible to specify the user (or user category) in the web address, that would be good, and it might avoid needing ?login=1 to show the optional login prompt.
This isn't a good idea. Basically, you you could have ?username=alibaba and it would pre-populate the username input in the login form, but what's the point of that? You can't just switch users by changing URLs without logging in for each user. Besides, it would be very insecure.
hairydog And I think I have found a bug.
If I log in on my phone, the create/upload options are sometimes only visible if I choose "Desktop Site" in the browser settings.
Logging out and in again sometimes fixes it, but not always.
Can't reproduce from here. Did you try the users demo outlined in the users docs?
https://www.files.gallery/docs/users/
This certainly has nothing to do with "Desktop Site". It could be you have some caching involved on server. I would need to see a link to diagnose properly. You can send to email (see email link at bottom of this page).