fix: update copy to reflect real default value of 2000px for resizeImageWidthThreshold

This commit is contained in:
Julian Lam
2024-11-07 10:57:22 -05:00
parent 62ee6ef36c
commit 4614958bcc
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
"private-extensions": "File extensions to make private",
"private-uploads-extensions-help": "Enter comma-separated list of file extensions to make private here (e.g. <code>pdf,xls,doc</code>). An empty list means all files are private.",
"resize-image-width-threshold": "Resize images if they are wider than specified width",
"resize-image-width-threshold-help": "(in pixels, default: 1520 pixels, set to 0 to disable)",
"resize-image-width-threshold-help": "(in pixels, default: 2000 pixels, set to 0 to disable)",
"resize-image-width": "Resize images down to specified width",
"resize-image-width-help": "(in pixels, default: 760 pixels, set to 0 to disable)",
"resize-image-quality": "Quality to use when resizing images",

View File

@@ -161,7 +161,7 @@ describe('Upload Controllers', () => {
assert(body.response.images[0].url);
assert(body.response.images[0].url.match(/\/assets\/uploads\/files\/\d+-test-resized\.png/));
meta.config.resizeImageWidth = oldValue;
meta.config.resizeImageWidthThreshold = 1520;
meta.config.resizeImageWidthThreshold = 2000;
});
it('should upload a file to a post', async () => {