Skip to content
/ fileshare Public

Simple endpoint to accept file uploads and outputs a link for sharing

License

Notifications You must be signed in to change notification settings

mavx/fileshare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fileshare

Simple endpoint to accept file uploads and returns a URL for sharing.

Requirements

Running the app

git clone https://github.com/mavx/fileshare
cd fileshare

just run-dev

Usage

Just visit the HOSTNAME:PORT/upload using your browser for the GUI. Otherwise, see below:

Uploading a file via CLI

$ curl -F "[email protected]" localhost:5000/upload
{
  "key": "figQPi",
  "success": true,
  "url": "localhost:5000/uploads/figQPi"
}

Accessing the file via CLI

$ curl -L localhost:5000/uploads/figQPi

About

Simple endpoint to accept file uploads and outputs a link for sharing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published