closes #5484
parent
b8c606cbbd
commit
e63559b6fd
@ -0,0 +1,18 @@
|
||||
/* jslint node: true */
|
||||
|
||||
'use strict';
|
||||
|
||||
var db = require('../../database');
|
||||
|
||||
module.exports = {
|
||||
name: 'Set default allowed file extensions',
|
||||
timestamp: Date.UTC(2017, 3, 14),
|
||||
method: function (callback) {
|
||||
db.getObjectField('config', 'allowedFileExtensions', function (err, value) {
|
||||
if (err || value) {
|
||||
return callback(err);
|
||||
}
|
||||
db.setObjectField('config', 'allowedFileExtensions', 'png,jpg,bmp', callback);
|
||||
});
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue