A simple HTTP file server written in Go for uploading, downloading, and deleting files via REST API endpoints.
- Upload files to custom folder paths (auto-creates directories)
- Download files by path
- Delete files by path
- Simple API endpoints
- POST
/api/addfile - Form fields:
file: File to upload (multipart/form-data)path: Destination path (e.g.,folder/subfolder/filename.txt)
- Creates any missing directories in the path.
- GET
/api/getfile?path=your/file/path.txt - Returns the file as a download.
- DELETE
/api/delete?path=your/file/path.txt - Deletes the specified file.
- Go 1.18 or newer
.envfile
make devmake buildmake startThe server will start on http://localhost:8080.