Working with Files in Cordova Applications

Description

The PhoneGap File System Action Javascript makes it easy to work with files stored in the file system of a mobile device. In addition to Action Javascript, there are methods available for working with the device's file system using Javascript in Cordova applications.

Name
Description
Downloading Files to a Mobile Device

This topic discusses two different techniques for downloading files (such as PDF, Video, Audio, Excel, Image files) to a mobile device so that the files are stored in the filesystem on the device and can be viewer later on (presumably when the device no longer has an internet connection) using the Native app associated with the particular file type.

PhoneGap File Upload Action Javascript

The PhoneGap File Upload Action Javascript allows you to upload one or more files in a Cordova application from the file system on the mobile device to either the Alpha Anywhere server, or to Amazon S3.

PhoneGap File Download Action Javascript

The PhoneGap File Download Action Javascript allows you to download one or more files from a remote server (e.g. Amazon S3, the Alpha Anywhere server, or some other server) and store those files in a folder on your mobile device.

PhoneGap - File System Actions Action Javascript

The PhoneGap - File System Actions Action Javascript allows you to perform actions on the file system of the mobile device in your Cordova application.

PhoneGap File System Actions - (File URI Based) Action Javascript

The PhoneGap File System Actions - (File URI Based) Action Javascript allows you to perform an action on a mobile device's file system in a Cordova application. The directory in which the file system action is performed is specified using a file URI.

Cordova File System Methods

Javascript methods available in a Cordova application for working with the file system on a mobile device.

Browsing and Editing Files with iOS Quick Look

Browse and edit files with native apps on iOS with iOS Quick Look.

Modifying the Default Cordova Location For Persistent Files

The Persistent File Location property is set to "Internal" for Android and "Library" for iOS.

On-Device-Data Genie

When you build Cordova or TransForm applications, you may want to store data (SQLite databases, images, movies, audio files, PDF files, etc.) on the mobile device so that the files can be accessed when there is no internet connection. The On-Device-Data Builder can be used to generate the manifest that defines the data to download to the device.