Oms API POST upload to user files - openmpp/openmpp.github.io GitHub Wiki
POST upload file to user files directory on the server.
If user files access enabled in server configuration then user can upload or download files, create or delete folders in user files directory.
This is a beta version and may change in the future.
User can upload any file into user files directory or sub-directories. If this is a .zip
archive then it will be automatically unpacked.
Method:
POST /api/files/file/:path
POST /api/files/file?path=....
Arguments:
:path - (required) directory and file name to be uploaded.
Call examples:
curl -v -X POST -F "[email protected]" http://localhost:4040/api/files/file/a.ini
curl -v -X POST -F "[email protected]" http://localhost:4040/api/files/file?path=dir%2Fa.ini
curl -v -X POST -F "[email protected]" http://localhost:4040/api/files/file/modelOne.set.New.zip
Please notice URL query parameters: ?path=dir%2Fa.ini
which is used to specify dir/a.ini
path.