chainlit
chainlit copied to clipboard
Mime type for uploading markdown files
trafficstars
I am building a framework that can work with markdown files. However, when I use the AskFileMessage with the mime types as below, it does not let me upload a markdown file. Wondering if I am doing something wrong here?
files = await cl.AskFileMessage(
content="Please upload a text or pdf file to begin!", accept=["text/plain", "application/pdf",
"application/json",
"text/markdown",
"text/html"],
max_size_mb=20,
timeout=180,
).send()