Loading several kinds of files

Hey everyone

I was wondering how can I use the file upload function to receive several types of files like images, pdf, CSV and so on. Basically extual and image files

is that even possible? or should I try to use a different way of implementation?

Yes, it is via the type argument!

(link) :slight_smile:

type (str or list of str or None) Array of allowed extensions. [‘png’, ‘jpg’] The default is None, which means all extensions are allowed.

Best,
Charly

1 Like

thanks!

Welcome!

Happy Streamlit-in! :balloon:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.