uploadAttachmentsImmediately

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

filePaths

List of file paths to upload immediately

module

Module name (e.g., "job", "customer")

moduleUid

UID of the module instance

attachmentType

Type of attachment being uploaded (defaults to Attachment)