upload Attachment Immediately
suspend fun uploadAttachmentImmediately(filePath: ZyncFile, module: String, moduleUid: String, attachmentType: ZyncAttachmentType = ZyncAttachmentType.Attachment): UploadAttachmentResult
Upload a single attachment immediately, bypassing the regular upload queue. This method stops any current upload work, uploads the specified file, and then resumes normal upload operations.
This is designed for use when you need to ensure a single attachment is uploaded synchronously before proceeding with other operations.
Return
UploadAttachmentResult containing the upload result for the file
Parameters
file Path
Path to the file to upload
module
Module name (e.g., "job", "customer")
module Uid
UID of the module instance
attachment Type
Type of attachment being uploaded (defaults to Attachment)