Downloading Files and Managing Sharing
Uploading Files
Encryption and Caching
Using Files in Hybrid Apps
Configure WebSockets
REST Wrappers for SFAP APIs
Using Key-Value Stores for Secure Data Storage
Dark Mode and Dark Theme Settings
Native mobile platforms support a method for uploading a file. You provide a path to the local file to be uploaded, the name or title of the file, and a description. If you know the MIME type, you can specify that as well. The upload method returns a platform-specific request object that can upload the file to the server. When you send this request to the server, the server creates a file with version set to 1.
Use the following methods for the given app type:
1FileRequests.uploadFile()1public static RestRequest
2uploadFile(
3File theFile,
4String name,
5String description,
6String mimeType)
7throws UnsupportedEncodingException1- requestForUploadFile:
2name:description:mimeType:1- (SFRestRequest *)
2requestForUploadFile:(NSData *)data
3name:(NSString *)name
4description:(NSString *)description
5mimeType:(NSString *)mimeTypeWe've Moved