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

This commit is contained in:
Ludovic Marcotte committed 2016-02-16 16:28:11 -05:00
1 parent d01f5d36fa
commit 32bb1456e2
2 files changed
+10

No files matched your search

+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];