Getting the (audio) file and uploading it to my server.

#1

Hello,

I am successfully recording and playing audio on my Expo project. Now this happens with a uri and not the file pointed to by the uri. I have to get the file itself on a variable and then send it over to my server. I tried using Expo.FileSystem.readAsStringAsync(uri) but got an “file could not be read” error, and then after also supplying a { encoding: FileSystem.EncodingTypes.Base64 } I got a file that I have no idea what to do with it.

How should I get the actual file? I use Apollo GraphQL by the way, not fetch

Sorry if the answer is obvious to this but I couldn’t find anything online.

0 Likes

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes