Skip to content
Permalink
Browse files

(feat) attachment size upload using WOMaxUploadSize (fixes #3510 and …

…#3135)
  • Loading branch information...
extrafu committed Feb 16, 2016
1 parent d01f5d3 commit 32bb1456e23a32c7f45079c3985bf732dd0d276d
Showing with 10 additions and 0 deletions.
  1. +4 −0 NEWS
  2. +6 −0 UI/MailerUI/UIxMailEditor.m
4 NEWS
@@ -1,6 +1,10 @@
2.3.9 (2016-XX-XX)
------------------

New features
- you can now limit the file upload size using the WOMaxUploadSize
configuration parameter (integer value in kilobytes) (#3510, #3135)

Enhancements
- allow resources to prevent invitations (#3410)
- now support EAS MIME truncation
@@ -593,6 +593,12 @@ - (NSException *) _saveAttachments
if ([[mimeType type] isEqualToString: @"multipart"])
{
httpBody = [[request httpRequest] body];

// We got an exception from SOPE - most likely due to
// WOMaxUploadSize being reached.
if ([httpBody isKindOfClass: [NSException class]])
return httpBody;

filenames = [self _scanAttachmentFilenamesInRequest: httpBody];

co = [self clientObject];

0 comments on commit 32bb145

Please sign in to comment.
You can’t perform that action at this time.