Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 713 Bytes

readme.md

File metadata and controls

31 lines (23 loc) · 713 Bytes

A File Hosting server written in Go

A lightweight file hosting server that can host your file.

$ curl -F "data=@yourfilename" 

this will respond with the unique url.

$ curl -JO "url"

Install

  • if you are on linux machine just run setup.sh.
  • setup will create a database directory at $HOME/.config/filehost/database.db.
  • and add alias to your default shell.
  • or you can build using below commands
$ go build -o filehost main.go

run command filehost in your shell or filehost & for running in background.

TODOS

  • URL Shortner.
  • Once file retrived it should be delete.
  • Set Download count limit.
  • Making it more structured.