Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70805

Can write but not read any file form file.documentsDirectory

$
0
0

I used the cordova-plugin-file-transfer plugin to download files to local system.

No problem for downloading, I could write into the local system

But when I try to access the files, for example to display an video downloaded in the local filesystem, my IOS device does not show any videos.

The files.toURL() correctly returns : file:///var/mobile/Containers/Data/Application/xxxxxxxxxxx/Library/Documents/u1_seq1_ac1_sp01.mp4
Looking to the container shows that the files are inside.

Even this command gives an empty video :
<videosrc=“capacitor://localhost/capacitor_file/var/mobile/Containers/Data/Application/xxxxxxxxxxx/Library/Documents/u1_seq1_ac1_sp01.mp4”/>

Any help please ? Cannot understand why I can write but no read a downloaded file to the local system.

Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70805

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>