command
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 19, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
fileadmin example
A minimal, runnable server that mounts the fileadmin panel on an
in-memory SQLite database. No external services required.
Run
From the fileadmin module root:
go run ./example
Then open http://localhost:8080/ in your browser and click
Open File Admin, or go directly to http://localhost:8080/admin/file-manager.
What you get
/ — landing page with a link into the admin
/admin/file-manager — file manager with directory browsing, file
upload, rename, clone, delete, bulk move/delete, and directory
create/delete
Configuration
Edit the constants at the top of main.go to change:
addr — listen address (default :8080)
dbFile — :memory: for an ephemeral DB, or a file path to persist
data across restarts
adminURL, homeURL, rootDir — mount points and root directory
Notes
AuthUserID is intentionally nil, so the panel is open. Provide a
real implementation in production.
- The in-memory database is reset on every restart. Pass a file path
to
openDB to persist data.
Documentation
¶
Example fileadmin server.
Boots an HTTP server with an in-memory SQLite database and mounts the
fileadmin panel at /admin/file-manager. No external services required.
Run from the fileadmin module root:
go run ./example
Then open http://localhost:8080/ in your browser.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.