Skip to content

Private cloud

Thibault Marquand - Mediashare edited this page Jan 29, 2020 · 1 revision

You can upload files to a private cloud if you add an ApiKey in the request header. The private cloud adds a layer of security for your filesystem. ## Usages

Upload

curl \
  -H "ApiKey: xxxxx" \
  -F "file=@/home/user1/Desktop/image1.jpg" \
  localhost:8000/upload

Files list

curl \
  -H "ApiKey: xxxxx" \
  localhost:8000/

File informations

curl \
  -H "ApiKey: xxxxx" \
  localhost:8000/info/{id}
Clone this wiki locally