From 6aca57a7cdcc2cd0e431146e61f3321100638baa Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 1 Jul 2026 00:00:00 +0000 Subject: xf: single-file HTTP file transfer server Serve a directory tree over HTTP through one embedded page: a listing with download links and a multi-file upload form. Filesystem access is confined to the served root with os.Root, and only regular files are served. Uploads are bounded by size and part count, and every file is staged in the target directory before any is renamed into place, so a refused or interrupted request leaves the directory untouched. Standard library only, no third-party dependencies. --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod (limited to 'go.mod') diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..0b37efa --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module xf + +go 1.25 -- cgit v1.2.3