@ -410,6 +410,10 @@ var db = require('./database'),
Posts.uploadPostFile = function(file, callback) {
if(plugins.hasListeners('filter:post.uploadFile')) {
plugins.fireHook('filter:post.uploadFile', file, callback);
} else {
if(!meta.config.allowFileUploads) {
return callback(new Error('File uploads are not allowed'));
}
@ -438,6 +442,7 @@ var db = require('./database'),
});
Posts.reIndexPids = function(pids, callback) {