Filepicker return not just filename but also filepath


I really enjoy the select-entire-directory feature of the file picker, but as of right now I can’t figure out how to get the relative paths within that. E.g., if you have files with the same name or you have some user who is lazy and doing a bulk upload and those relative paths matter to them wrt some mapping, or reflection of the filesystem structure in S3.

Fundamentally, does the interface between the browser and frontend web clients obscure the filepath and only give the filename, or are you able to expose that as an attribute in the retool component?

Thank you!

For anyone who needs a workaround for now, you can create a custom component and make use of the example at:

Use FileReader.readAsDataURL on each file to get a base64 representation of the contents in the same way as is currently given back by the Filepicker component in retool