using st.file_upload, you can see the file name on the GUI, but is there a way to retrieve that file name in python? I’m building an uploader that uploads file to S3, it would be nice to preserve the original file name after upload
1 Like
As it returns a file io like object, try accessing the .name attribute on the file object that you receive.
2 Likes
That worked! Tks a lot!
1 Like
Glad to hear! Always nice to get feedback 