Giving Guests access to File manager
Permalink
I have a form block with a file upload input that uses file manager. I've changed the permissions so that a guest user can upload files to the file manager but I've hit a wall in that it seems the Guest user has no ID and it is resulting in the following error.
An exception occurred while executing 'INSERT INTO ConfigStore (cfKey, cfValue, uID) VALUES (?, ?, ?)' with params ["file_manager.sort.7", "[\"folderItemModified\",\"desc\"]", null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uID' cannot be null
Is there a workaround or a way to set a default ID for the guest user.
An exception occurred while executing 'INSERT INTO ConfigStore (cfKey, cfValue, uID) VALUES (?, ?, ?)' with params ["file_manager.sort.7", "[\"folderItemModified\",\"desc\"]", null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uID' cannot be null
Is there a workaround or a way to set a default ID for the guest user.
Its not designed to work for guests. Letting guests use the file manager would be a major security hole.
Thank you for your reply, John,
It is weird that they have the permissions option to give access in the first place then. Security is already taken care of through a very strict firewall. Will go for a custom solution instead.
It is weird that they have the permissions option to give access in the first place then. Security is already taken care of through a very strict firewall. Will go for a custom solution instead.
So even if I could just suppress the error that would be helpful.