Skip Navigation

Mobile and Offline Developer Guide

control-j is the search shortcutj
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Mobile App Development with Lightning Web Components and LWC Offline
Create Mobile-Ready Components
Use Mobile Device Features in Mobile Apps
Offline Considerations and Limitations
Offline Environment Details
Use Salesforce Features While Offline
Use GraphQL While Mobile and Offline
Use Apex While Mobile and Offline
Use Images in an LWC Offline-Enabled Component
Upload Images While Offline
Understand File Uploads in Salesforce
Image Upload Basics
Image Upload Example
Use Third-Party JavaScript in an LWC Offline-Enabled Component
Navigation
Development Tools and Processes
Quick Start Tutorials
PDF
Use Salesforce Features While Offline/Upload Images While Offline/Image Upload Basics

Image Upload Basics

Uploading an image from an LWC using features supported offline is a two-step process. First, use createContentDocumentAndVersion to upload the image file. This adapter creates ContentDocument and ContentVersion records for the file upload. After the ContentDocument and ContentVersion exist, use createRecord to create the ContentDocumentLink record that relates the image upload to the record you want to attach it to.
Salesforce logo