(feat) you can now limit the file upload size using WOMaxUploadSize

This commit is contained in:
Ludovic Marcotte committed 2016-02-17 08:24:32 -05:00
1 parent e47bc8cb1b
commit 1f71cff18d
4 files changed
+17

No files matched your search

+6
View File
@@ -590,6 +590,12 @@ static NSArray *infoKeys = nil;
request = [context request];
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];