<myData_uri>/progress[.<format>]
uploadProgress resource is used to get the upload progress of data specified by data item ID.
Supported Methods:
Supported output formats: RJSON, JSON, HTML, XML.
Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/web/mycontent/datas/{id}/progress.rjson
Get the upload progress of data specified by data item ID.
Execute GET request for uploadProgress resource, and get the upload progress of data specified by data item ID. The structure of the response resource representation is as follows:
Field | Type | Description |
id |
String |
Data storage ID |
read |
long |
The progress of the uploaded file. If there is no progress, the value is -1. |
total |
long |
The total progress of the uploaded file. If there is no progress, the value is -1. |
Implement the GET request on the uploadProgress resource http://localhost:8090/iportal/web/mycontent/datas/1/progress.rjson. Return rjson results:
{
"id": "null",
"read": 94,
"total": 100
}
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the uploadProgress resource exists, or if the uploadProgress resource can be accessed by clients. It can also determine if the uploadProgress resource supports an output format <format> if performed on a URI with .<format> included.