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 github.com/forcedotcom/SalesforceMobileSDK-Shared repo demonstrates this setup.

Mobile SDK does not support file uploads in hybrid apps.

Note

We've Moved

Welcome to the new home of the Mobile SDK Developer Guide! For now, the Japanese guide can be found in PDF form.