Uploading file on OSv - nyh/osv GitHub Wiki

Prerequires

httpserver module is required. It is enabled by default on Capstan image, but when you build OSv image from source code, you'll need to specify httpserver like this:

$ make image=cassandra,httpserver

via browser

  1. Connect http://OSv IP address:8000/
  2. Select "REST" Tab on left side
  3. Input upload filename on "path-par"
  4. Select "POST /file/{path-par}" on FILE API
  5. Press "Select file", then select file on your computer
  6. Press "Try it out!"

via curl command

When you want to upload "src.txt" to "/dest.txt" on OSv instance, try following command:

curl -X POST http://OSv IP address:8000/file/dest.txt [email protected]