MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / getMaxFileSize

Function getMaxFileSize

main.js:2494–2502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2492 console.error('Error updating currentVersion in database:', versionError);
2493 }
2494
2495 // STL_HOME / EXTENSION_UPLOAD_DIR: seed from env when the setting is empty, or always when
2496 // PRINTVENTORY_ENV_OVERRIDES_SETTINGS=1 (legacy Docker behavior). Otherwise UI changes persist
2497 // across container restarts instead of being overwritten every startup.
2498 applyDockerEnvSettingIfNeeded('stlHome', process.env.STL_HOME);
2499 applyDockerEnvSettingIfNeeded('extensionUploadDirectory', process.env.EXTENSION_UPLOAD_DIR);
2500 applyDockerEnvSettingIfNeeded('serverHttpPort', process.env.PRINTVENTORY_PORT);
2501
2502 // Clear leftover zip-extract temps off the critical path (can readdir a busy OS temp)
2503 setImmediate(() => {
2504 try {
2505 ensureExtractTempDir();

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected