There is no NativeScript plugin for iOS for file picking.
However, you can implement this functionality with the file-system
What we would need is that the file is in an accessible folder (documents, currentApp
import * as fs from
let documents = fs.knownFolders.documents();
// documents folder on iOS device
let currentApp = fs.knownFolders.currentApp();
// the current applicaiton "app" folder
let temp = fs.knownFolders.temp();
// the device temp folder
let file = currentApp.getFile(
The example above shows how to pick a file located in <my-project>/app/sample-pdf.pdf
Regarding the second part of your question (uploading to firebase or local device).
You can use nativescript-plugin-firebase
and create a Firebase bucket to use the storage functionality of Firebase
. Once your firebase plugin and account is set you can easily upload the file we had picked earlier
// determine the path to a file in the app/res folder
filePath = file.path;
// now upload the file with either of the options below:
// optional, can also be passed during init() as 'storageBucket' param so we can cache it (find it in the Firebase console)
// the full path of the file in your Firebase storage (folders will be created)
// option 1: a file-system module File object
// option 2: a full file path (ignored if 'localFile' is set)
// get notified of file upload progress
"Uploaded fraction: "
"Percentage complete: "
"File uploaded: "
"File upload error: "