Using Files in Hybrid Apps

Hybrid file request wrappers reside in the force+files.js JavaScript library. When using the hybrid functions, you pass in a callback function that receives and handles the server response. You also pass in a function to handle errors.

To simplify the code, you can use the mobilesync.js and force.js libraries to build your HTML app. The FileExplorer sample app in the repo demonstrates this setup.

Mobile SDK does not support file uploads in hybrid apps.