budibase
budibase copied to clipboard
Public form show "Session not authenticated" when user try to upload an attachment
Hosting
- Self
- Method: docker compose
- Budibase Version: 1.0.158
Describe the bug Public form show "Session not authenticated" when user try to upload an attachment.
To Reproduce Steps to reproduce the behavior:
- Create new app
- Add a form and attachment component
- Set both the read and write table permission to public
- Publish app
- Open app in incognito and try to upload any file.
Expected behavior User are able to upload attachment in public form without sign-in
Screenshots
Additional context
The id
in upload URL was undefined
Additional context:
- reproduced on Safari for IOS, Safari for macOS, Chrome for IOS, Chrome for macOS.
- works with Edge for macOS
Updates:
Turns out it was due to the setting of schema in form component. It will work if I set the form schema to follow a public table schema but does not work for all other options. Maybe there is something wrong with the authentication check for schema when user are not signed in.

Hi Guys,
Facing the same issue, in my case schema is custom, as the form fields i am storing in different table and attachment in budibase db table. So the form schema is custom and I am using 2 steps to save form:
- fields in mysql db
- attachment in budibase db.
Is there any immediate fix or workaround for this ?
This issue has been automatically marked as stale because it has not had recent activity.
Updates:
Turns out it was due to the setting of schema in form component. It will work if I set the form schema to follow a public table schema but does not work for all other options. Maybe there is something wrong with the authentication check for schema when user are not signed in.
![]()
@HMXHIU This resolved the problem than you so much!
I would recommend @mayanktiwaridotcom to make all the tables public like this case https://github.com/Budibase/budibase/issues/4582#issuecomment-1054444261 including the tables on the MySQL database.
Thanks for the extra info guys!
I've added a section to the docs to explain this: https://docs.budibase.com/docs/attachments#manage-access