Ti.Filesystem.getFile, unable to save file from app
I've been working on this for a couple of weeks with no avail
Semon Xue has been very generous and has been trying to help me through email but i am missing something and cant seem to get it to work, so i was gonna ask again.
i am trying to get the phone to save a WAVE file by double clicking on a button.
this is the code i am trying. where 'sound.wav' is the file i am trying to save to the phone.
I have tried with and without the single quotes
<script src='http://pastie.org/1194593.js'></script>
any ideas guys?
thanks in advance
2 Answers
-
By Don Thorp's suggestion that should work, no? I tried it with a 'click' event and no go for me either.
-
Hi Luke
Have you seen the Local Data guide that includes an section about the filesystem?
Also, are you certain
file_source.name
returns what you expect?Cheers