Tired of saving data in the database?
Look no further this is a quick and easy solution for storing and exposing your files.
$ docker run -dit --name fileserver -p 8081:8081 -p 8082:8082 -v /fileserver:/fileserver -e HOST="domain-or-ip.com" -e PROTOCOL="http" agna/fileserver
Files are added with a POST request via API.
[URL] mydomain.com:8082/uploads [HEADER] { "Content-Type": "multipart/form-data" } [PAYLOAD] { file: { value: '[...]', options: { filename: 'example.pdf' } } }
The value field is binary data.
You can test your running file-server in Postman by doing the following steps:
If you have any questions please feel free to ask in the comments.
Content type
Image
Digest
Size
20.7 MB
Last updated
almost 10 years ago
docker pull agna/fileserver