You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uploading this file on Android using this plugin crashes with the following error:
Upload failed: Unsupported scheme for file:///storage/emulated/0/Android/data/<myappid>/files/VID_20250104103919.mp4.
Currently supported schemes are [/, content://]
If I replace file:// with '' on Android, it works. I do not know if that is expected, but ideally, the plugin would work the same on both platforms.
The text was updated successfully, but these errors were encountered:
I'm using this to upload videos recorded by https://github.com/capacitor-community/video-recorder. On iOS the file uploads successfully, but on Android, it crashes.
The video-recorder produces file URLs of the form:
'http://192.168.1.36:8100/_capacitor_file_/storage/emulated/0/Android/data/<myappid>/files/VID_20250104103919.mp4'
on iOS, following the video-recorder example code, I replace it with a file:// URL and it works fine.
e.g.
filePath = 'file://' + srcVideo.split('_capacitor_file_')[1];
to produce a url like:
'file:///storage/emulated/0/Android/data/com.ionicframework.bookship/files/VID_20250104103919.mp4'
Uploading this file on Android using this plugin crashes with the following error:
If I replace file:// with '' on Android, it works. I do not know if that is expected, but ideally, the plugin would work the same on both platforms.
The text was updated successfully, but these errors were encountered: