fileUpload


URI

<myData_uri>/upload[.<format>]

Supported methods

POST

Parent resource

mydata

Introduction

 The fieUpload resource is used to upload data file specified by data item id.

Note: SuperMap iPortal 7C(2015) and higher versions only grant system administrators and users possess the DATA_CENTER role permission to upload data and publish the data as service. Administrators can modify roles associated by user at http://supermapiserver:8090/iportal/manager/security/users, and you can implement the POST on the user resource for modification.

Supported Methods:

Supported output formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP request methods

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}/upload.rjson

POST request

Upload data file specified by data item id. The request body is text stream.

Response structure

When you implement the POST request on the fileUpload resource to upload data file specified by data item id, the structure of the returned resource is as follows:

Field Type Description

childID

String The id of child resource, that is, data item id.

childContent

Object

The content of the child resource.

childUrl

String

The URI of the child resource.

customResult

Object

Custom result.

isAsynchronizedReturn

boolean

Whether to return result asynchronously. The value for isAsynchronizedReturn of this resource is always false.

Response example

Implement the POST request on the fieUpload resource http://localhost:8090/iportal/web/mycontent/datas/1/upload.rjson to return the result in rjson format:

{

  "childContent": null,

  "childID": "1",

  "childUrl": null,

  "customResult": null,

  "isAsynchronizedReturn": false

}

See