Capacitor Get File to upload

I am recording Video and video plugin returns this url:

“/data/user/0/com.myapp.app/cache/videoTmp_16.mp4”

How can i get File so i can upload it to my server.

Using Filesystem plugin return base64:

const fileData = await Filesystem.readFile({
    path: filePath,
});
return fileData.data; // This is the base64-encoded file data

See Converting a base64 string to a blob in JavaScript - Ionic Blog.

Or just send the Base64 to your backend server and have it convert to back to binary.