I am trying to create a file size restriction in streamlit. For this I need to get the uploaded file size of a into a varible.
In a simple python script i was able to use the following function to get file size.
os.path.getsize("filename.mp3")
But I am unable to do it in streamlit app.