Nativescript and resources folder - is there a simple solution?
问题 I will start with the fact that currently - I'm uploading successfully an mp3 file to a server - but via a hacky way. I'm having 2 raw folders as you can see : And here is the working code to upload the file : upload1() { let file = fs.path.join(fs.knownFolders.currentApp().path, "raw/a1.mp3"); var request = { url: "http://posttestserver.com/post.php", method: "POST", ... }; var task = session.uploadFile(file, request); task.on("progress", this.logEvent); } Here is the output for the