File Attachment doesn't work for public

Hi,

When adding a file attachment in my app, it works file in the editor mode:

But fails each time when I access it as outside user:

I have these options set:

What do I need to do to make it work? - pls help

Thank you

Hey there @Raj,

You can take a look at this similar thread Unable to upload file in public app - Missing Access Token error - #11 by Darren

In a nutshell, you need to create a a retool storage query to upload the file, rather than using the “Upload file to Retool Storage” checkbox in your file settings

2 Likes

This is correct! We are generally looking to deprecate the checkbox approach at some point in the future, so I recommend writing dedicated upload queries.

1 Like

Thanks guys! I’ll go with that

2 Likes