-
-
Notifications
You must be signed in to change notification settings - Fork 605
Uploading file on OSv
syuu1228 edited this page Nov 10, 2014
·
1 revision
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
- 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!"
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 -Fname=@src.txt