Can i get relative path of file

Hi Retool Team,

I'm working on a feature that allows users to upload an entire directory in Retool while preserving its folder structure in AWS S3. Currently, when selecting a directory using the File Input component with the "Directory" selection type, the webkitRelativePath property is not available in the file objects.

Would it be possible to access the relative path of each file within the selected directory? This would help in maintaining the original folder structure during the upload process.

If there’s an alternative way to achieve this in Retool, I’d appreciate any guidance you can provide.

Thanks in advance for your help!

Hi @Mina_Adel,

Thanks for reaching out about this! Unfortunately, the web platform does not provide information about file paths for security reasons, so this isn't currently on our roadmap :disappointed:

I don't have a great workaround, but maybe your users could manually provide this information via other components