Problem with the file_uploader function when trying to upload WAV files

Hi there, I am trying to upload a WAV file using the file_uploader function and facing problem. To give a better understanding of the problem:

  1. List item Everything works fine when I am using file_selector function and the output is below

  2. List item However when I am trying to use the file_uploader function I get the following error

The code I am using is

I believe my subsequent codes will work if I can change <class '_io.BytesIO'> given by file_uploader to <class 'str'> given by file_selector. How to do that.

Would highly appreciate any suggestions. And thanks in advance.