0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added a comment about strict content/media imports

refs https://github.com/TryGhost/Toolbox/issues/523

- Making "content/media" a strict requirement for the import folder structure breaks the importer (glob library does not expand a subdirectory pattern). Unless it become a strict requirement we can use general content directory matching in combination with file extensions.
This commit is contained in:
Naz 2023-03-02 14:34:32 +08:00
parent 0c111cfe6b
commit 59d0a1dd71
No known key found for this signature in database

View file

@ -25,6 +25,9 @@ class ImporterMediaHandler {
return this.config.get('uploads').media.contentTypes;
}
// @NOTE: making the second parameter strict folder "content/media" broke the glob pattern
// in the importer, so we need to keep it as general "content" unless
// it becomes a strict requirement
directories = ['media', 'content'];
async loadFile(files, baseDir) {