O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading a file

On a phone, there are various types of files and folders that we create in storage. In the Capturing and managing photos using the camera recipe, we saw how to fetch a photo from a library/album or capture a live photo. The limitation with this API is that it works well with photos but not with other files. Also, it allows us to select a single photo at a time. If you are building an e-mail kind of application where you want to be able to attach one or more different types of documents, the File API is something that can help you implement this functionality. It is based on the HTML 5 File API specification outline described at the following URLs:

In this recipe, we will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required