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
- Connect http://OSv IP address:8000/
- Select "REST" Tab on left side
- Input upload filename on "path-par"
- Select "POST /file/{path-par}" on FILE API
- Press "Select file", then select file on your computer
- 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]