(feat) you can now limit the file upload size using WOMaxUploadSize
parent
e47bc8cb1b
commit
1f71cff18d
2
NEWS
2
NEWS
|
@ -5,6 +5,8 @@ New features
|
||||||
- [web] show all/only this calendar
|
- [web] show all/only this calendar
|
||||||
- [web] convert a message to an appointment or a task (#1722)
|
- [web] convert a message to an appointment or a task (#1722)
|
||||||
- [web] customizable base font size for HTML messages
|
- [web] customizable base font size for HTML messages
|
||||||
|
- [web you can now limit the file upload size using the WOMaxUploadSize
|
||||||
|
configuration parameter (integer value in kilobytes) (#3510, #3135)
|
||||||
|
|
||||||
Enhancements
|
Enhancements
|
||||||
- [web] added Junk handling feature from v2
|
- [web] added Junk handling feature from v2
|
||||||
|
|
|
@ -303,3 +303,6 @@
|
||||||
"Your email has been saved" = "Your email has been saved";
|
"Your email has been saved" = "Your email has been saved";
|
||||||
"Your email has been sent" = "Your email has been sent";
|
"Your email has been sent" = "Your email has been sent";
|
||||||
"Folder compacted" = "Folder compacted";
|
"Folder compacted" = "Folder compacted";
|
||||||
|
|
||||||
|
/* Error when uploading a file attachment */
|
||||||
|
"An error occured while uploading" = "An error occured while uploading";
|
||||||
|
|
|
@ -590,6 +590,12 @@ static NSArray *infoKeys = nil;
|
||||||
request = [context request];
|
request = [context request];
|
||||||
|
|
||||||
httpBody = [[request httpRequest] body];
|
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];
|
filenames = [self _scanAttachmentFilenamesInRequest: httpBody];
|
||||||
|
|
||||||
co = [self clientObject];
|
co = [self clientObject];
|
||||||
|
|
|
@ -44,6 +44,12 @@
|
||||||
this.removeFromQueue(item);
|
this.removeFromQueue(item);
|
||||||
},
|
},
|
||||||
onErrorItem: function(item, response, status, headers) {
|
onErrorItem: function(item, response, status, headers) {
|
||||||
|
$mdToast.show(
|
||||||
|
$mdToast.simple()
|
||||||
|
.content(l('An error occured while uploading' + ' ' + item.file.name))
|
||||||
|
.position('top right')
|
||||||
|
.hideDelay(3000));
|
||||||
|
this.removeFromQueue(item);
|
||||||
//console.debug(item); console.debug('error = ' + JSON.stringify(response, undefined, 2));
|
//console.debug(item); console.debug('error = ' + JSON.stringify(response, undefined, 2));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue