Skip to content

burnt0rice/shortfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortFile

Service to upload Files and download it with an unique URL. Under the hood the file will be compressed and saved.

Run frontend and backend

go run main.go -port=3000

Build frontend

cd frontend
npm install
npm run build

Requests

Upload new file

Request

curl -F "file=@/path/to/file.jpg" http://localhost:3000/api/u

Response

  • message string
  • downloadUrl string

Get file info

Request

curl http://localhost:3000/api/i/:id

Response

  • message string
  • file object
  • file.name string
  • file.timestamp string
  • file.uuid number

Download file

Request

curl http://localhost:3000/api/d/:id

Response

  • File file

Todo

  • Job to delete files after 30 days

Others

Happy File icon by Icons8

Embedding Vue.js Apps in Go

Stroll through ricefield

If you like this project, you can explore more of my projects on my GitHub profile or on my website.

About

Full Stack Service to upload Files and download it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published