uploadAttachmentImmediately

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

filePath

Path to the file to upload

module

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

moduleUid

UID of the module instance

attachmentType

Type of attachment being uploaded (defaults to Attachment)