This commit is contained in:
Flummi 2016-12-30 19:12:43 +01:00
parent 7398dba271
commit 4bab4102f1

View File

@ -174,7 +174,7 @@ module.exports = (lib, userlevel) => {
.on('finish', () => {
var size = dat.bytesWritten;
dat.end();
if( ( size <= lib.cfg.main.maxFileSize ) || ( userlevel >= 100 && force ) ) {
if( ( size <= lib.cfg.main.maxFileSize ) || force ) {
fs.stat('./b/' + tmpdest, (err, stat) => {
if(!err && stat.isFile() && stat.size > 300) {
lib.log('Datei '+tmpdest+' existiert');