Skip to content

Make file uploads directory configurable #2155

@brooklynbagel

Description

@brooklynbagel

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, #2156

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions