upload Attachments Immediately
suspend fun uploadAttachmentsImmediately(filePaths: List<ZyncFile>, module: String, moduleUid: String, attachmentType: ZyncAttachmentType): UploadAttachmentsResult
Upload attachments immediately, bypassing the regular upload queue. This method stops any current upload work, uploads the specified files, and then resumes normal upload operations.
This is designed for use by the offline engine when it needs to ensure attachments are uploaded synchronously before proceeding with API calls.
Return
UploadAttachmentsResult containing the upload results for each file
Parameters
file Paths
List of file paths to upload immediately
module
Module name (e.g., "job", "customer")
module Uid
UID of the module instance
attachment Type
Type of attachment being uploaded (defaults to Attachment)