carbonio-mailbox
carbonio-mailbox copied to clipboard
feat: [CO-1258] FileUploadServlet allow uploading huge attachments
Allow user upload huge attachments using service/upload
endpoint.
What has changed:
- The
lbfums
parameter in the upload request now makes theFileUploadServlet
use thezimbraFileUploadMaxSizePerFile
account attribute to enforce the maximum upload file size limit. -
ParseMimeMessage
(while saving attachments from MimeMessage usingFileUploadServlet
) now handles smartlink attachments separately, applying limits enforced byzimbraFileUploadMaxSizePerFile
instead ofzimbraMtaMaxMessageSize
. - The
SaveDraft
,GetMsg
, andSearchResponse
APIs now return the size of theMimeMessage
that accounts for smartlinks, allowing the Mail composer to determine if attachments should be converted to smartlinks. Additionally, theencodeMessageAsMP
method inToXML
now prevents adding emptyMimeMessage
elements to responses, reducing the need for client-side checks. - Added tests and made some minor refactoring.