For situations where you need a file path, rather than an in-memory file object, you can use NamedTemporyFiles, like in this example File uploading and reading using st.file_uploader - #2 by blackary
blackary
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| I get an error everytime I change anything in my code | 6 | 5131 | January 12, 2022 | |
| Can't read an image uploaded with st.file_uploader() | 1 | 1105 | November 19, 2021 | |
| Issue | 2 | 418 | October 25, 2023 | |
| Unable to import cv2 to deloy streamlit | 2 | 639 | December 15, 2023 | |
| File Uploader File to OpenCV imread | 4 | 6098 | January 9, 2022 |