Error when uploading a video to my server from my mobile application

I am facing difficulties while attempting to upload a video to my server from my application. Currently, I am using the @capacitor-community/camera-preview plugin to record videos. Once the recording is complete, I get the video path, for example, “/data/user/0/com.example/cache/videoTmp_2.mp4”. However, I have encountered issues when trying to upload this video. I have tried various approaches, such as reading the file with @capacitor/filesystem and converting it to base64. Unfortunately, the conversion has not been successful and seems impossible to achieve. Additionally, when using filesystem, permission errors arise despite having the necessary permissions to implement it on Android. I haven’t tested it on iOS yet, but I assume I might face a similar problem.

My permissions in the manifest file are as follows:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />

I would appreciate any guidance on how I can resolve this issue and send the video to my server using an HTTP POST request. I am eager to hear your insights!