chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Make file uploads directory configurable

Open brooklynbagel opened this issue 6 months ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. Right now the files directory (.files) is hard-coded into the application and is not configurable. This can be a problem when Chainlit is being run on an environment that doesn't give the user direct control of the directory the application is installed and run in.

Describe the solution you'd like Add a configuration to config.toml to override the default files directory. I'd suggest something like features.spontaneous_file_upload.files_dir

Describe alternatives you've considered Keep the status-quo which is problematic on certain environments.

Additional context I have a PR that is ready for review, https://github.com/Chainlit/chainlit/pull/2156

brooklynbagel avatar May 07 '25 02:05 brooklynbagel

this is very much needed

rakeshvikhar avatar Jul 30 '25 05:07 rakeshvikhar