Allow .schem to be uploaded.
This commit is contained in:
1 parent
43c704044a
commit
9ea173c8a4
1 file changed
+2
-2
@@ -86,8 +86,8 @@ public class WebModule extends ServerModule {
|
||||
}
|
||||
if (fileName.length() <= 10) return;
|
||||
var baseFileName = Helper.cleanFileName(fileName.substring(0, fileName.length() - 10));
|
||||
log.info("Handling new file: {}", fileName);
|
||||
if (fileName.endsWith(".schematic")) {
|
||||
|
||||
if (fileName.endsWith(".schematic") || fileName.endsWith(".schem")) {
|
||||
Files.write(SCHEMATIC_DIR.resolve(baseFileName + ".schematic"), file.content().readAllBytes());
|
||||
log.info("Saved " + fileName + " as a schematic.");
|
||||
} else if (fileName.endsWith(".litematic")) {
|
||||
|
||||
Reference in new issue
Block a user