Uploading and Reading Files with Streamlit

Allow Your Streamlit Dashboard Users to Upload Their Own Data

Andy McDonald
6 min readJan 22, 2023
Photo by Conny Schneider on Unsplash

Streamlit is an awesome open-source Python library that can be used to create interactive dashboards and applications. This can help simplify the data science workflow. If you are just starting out with Streamlit, at some point you are going to want to allow users to upload their own data. This is easily achieved with the file_uploader function.

Within this short article we are going to cover the essentials of the file_uploader function from Streamlit. We will go through the basics of using it to upload single files, multiple files and how to read the uploaded files.

This article forms part of a series of articles I have created on Streamlit. You can explore the other articles at the links below.

--

--

Andy McDonald

Petrophysicist and Data Scientist with a passion for data analytics, machine learning, and AI. https://andymcdonaldgeo.medium.com/membership