Expected str, bytes or os.PathLike object, not UploadedFile for PDF file

Hey @Saksham,

First, welcome to the Streamlit Community!!! :partying_face: :partying_face: :tada: :tada: :balloon: :star2:

Can you post a link to your code? Also, you’re passing your uploaded file into a function that I cannot see, I imagine that somewhere in that function your passing the uploaded file directly into something that was expected “str”, “bytes” or a path.

Check out this discussion where someone has a similar issue (docs typo already fixed):

Happy Streamlit-ing!
Marisa

1 Like