GetFile does not work on FileSystemApi

Asked 2 years ago, Updated 2 years ago, 76 views

I'm studying FILEAPI at Monaca, but I can't create files even if I look at the documents on the website.
https://docs.monaca.io/ja/reference/cordova_6.2/file/

I tried to create a txt file using this document, but getFile didn't work.
The operating system is iOS and I use Library for storage.
You can get a list of files.
Also, I probably created a folder called File in the Library directory when I used getFile.I don't know why this happens.
This may be a rudimentary question, but I appreciate your cooperation.

javascript monaca filesystems

2022-09-30 19:23

1 Answers

I solved myself.
It was not working because the argument to call when getFile failed was incorrect.
I only watched those who succeeded.
Sorry for the inconvenience.


2022-09-30 19:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.