mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:06:40 +02:00
Remove allowFileUploads ACP option (#8324)
* feat: allow awaitable upgrade scripts * feat: allowFileUploads removal upgrade script * refactor: remove unnecessary ACP option `allowFileUploads` * fix: updated upgrade script template to not use callback arg * fix: upgrade script as per @baris * fix: add missing await * fix: add missing await
This commit is contained in:
@@ -131,7 +131,6 @@ describe('Upload Controllers', function () {
|
||||
|
||||
|
||||
it('should upload a file to a post', function (done) {
|
||||
meta.config.allowFileUploads = 1;
|
||||
var oldValue = meta.config.allowedFileExtensions;
|
||||
meta.config.allowedFileExtensions = 'png,jpg,bmp,html';
|
||||
helpers.uploadFile(nconf.get('url') + '/api/post/upload', path.join(__dirname, '../test/files/503.html'), {}, jar, csrf_token, function (err, res, body) {
|
||||
|
||||
Reference in New Issue
Block a user