Ignore .git store on Template uploads for editor and increase payload size to 10MB (fixes #12561)

Signed-off-by: Axel Hecht <axel@pike.org>
This commit is contained in:
Axel Hecht
2022-09-23 18:54:48 +02:00
parent c02fda193d
commit b681275e69
3 changed files with 12 additions and 1 deletions
@@ -71,6 +71,10 @@ class WebDirectoryAccess implements TemplateDirectoryAccess {
if (handle.kind === 'file') {
yield new WebFileAccess([...basePath, handle.name].join('/'), handle);
} else if (handle.kind === 'directory') {
// Skip git storage directory
if (handle.name === '.git') {
continue;
}
yield* this.listDirectoryContents(handle, [...basePath, handle.name]);
}
}