HTTP API - MMS File Upload: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''POST <nowiki> | '''POST <nowiki>http://gateway_ip/api/mms_file/file{0..31}</nowiki>''' | ||
Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ... | |||
'''Example:''' | '''Example and''' '''Request:'''<syntaxhighlight lang="text"> | ||
curl -u admin:admin --anyauth -k -H "Content-Type: multipart/form-data" -F "file=@test.jpg" http://gateway_ip/api/mms_file/file0 | |||
OR | |||
curl -H "Content-Type: multipart/form-data" -F "file=@ | |||
curl -u admin:admin --anyauth -k -H "Content-Type: multipart/form-data" -F "file=@test.txt" http://gateway_ip/api/mms_file/file1 | |||
</syntaxhighlight>The following file formats are handled : .jpg, .png or .txt |
Latest revision as of 07:51, 3 July 2024
POST http://gateway_ip/api/mms_file/file{0..31}
Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ...
Example and Request:
curl -u admin:admin --anyauth -k -H "Content-Type: multipart/form-data" -F "file=@test.jpg" http://gateway_ip/api/mms_file/file0
OR
curl -u admin:admin --anyauth -k -H "Content-Type: multipart/form-data" -F "file=@test.txt" http://gateway_ip/api/mms_file/file1
The following file formats are handled : .jpg, .png or .txt