allow module import from a file

This commit is contained in:
sbwalker
2025-05-15 09:34:19 -04:00
parent a49b8728fd
commit 51ba3a01f5
2 changed files with 17 additions and 4 deletions

View File

@ -290,7 +290,7 @@ namespace Oqtane.Controllers
var file = _files.GetFile(folderid, filename);
if (file == null)
{
file = new Models.File { FolderId = folderid, Name = filename, Extension = "txt", Size = (int)new FileInfo(filepath).Length, ImageWidth = 0, ImageHeight = 0 };
file = new Models.File { FolderId = folderid, Name = filename, Extension = "json", Size = (int)new FileInfo(filepath).Length, ImageWidth = 0, ImageHeight = 0 };
_files.AddFile(file);
}
else