So far the plugin is working fine while Add/Edit a record if we select one or multiple files in the form field. In case if we didn't select any file, its insert a single empty record in the attachment table.
As per the requirement, the File Upload for Add/ Edit is Optional. See my code below, and please guide me to what I have missed.
Dear Friends,
So far the plugin is working fine while Add/Edit a record if we select one or multiple files in the form field. In case if we didn't select any file, its insert a single empty record in the attachment table.
As per the requirement, the File Upload for Add/ Edit is Optional. See my code below, and please guide me to what I have missed.
InvoiceAttachmentTable
create-invoice.ctp
Note: I have shared the code which related to the upload behaviour only.