fix foreach in fileupload

This commit is contained in:
Christoph Scholz 2019-05-16 09:10:40 +02:00 committed by JC Brand
parent 16db6195d3
commit 038359c74f

View File

@ -626,7 +626,7 @@ converse.plugins.add('converse-chatboxes', {
});
return;
}
files.forEach(file => {
Array.from(files).forEach(file => {
if (!window.isNaN(max_file_size) && window.parseInt(file.size) > max_file_size) {
return this.messages.create({
'message': __('The size of your file, %1$s, exceeds the maximum allowed by your server, which is %2$s.',