chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Mime type for uploading markdown files

Open tahreemrasul opened this issue 1 year ago • 0 comments
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()
Screen Shot 2024-06-18 at 10 19 56 AM

tahreemrasul avatar Jun 18 '24 05:06 tahreemrasul