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

This commit is contained in:
Ludovic Marcotte
2016-02-16 16:28:11 -05:00
parent d01f5d36fa
commit 32bb1456e2
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -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
+6
View File
@@ -593,6 +593,12 @@ static NSArray *infoKeys = nil;
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];