Bug:  NIM090609: Enhancement Request: Add feature service attachment whitelist functionality in GUI or REST Admin API

相关信息
Article ID: 41138
Bug Id: NIM090609: Enhancement Request: Add feature service attachment whitelist functionality in GUI or REST admin API
Software:
ArcGIS for Server 10.1
Platforms:
Windows Windows 7, Server 2008 R2

BUG描述
Currently, there is no direct means of controlling what type of file can be uploaded as a feature service attachment. This is very inconvenient for feature services editing. The workaround is found in editing the service properties of the REST Admin API.

BUG原因
The "allowedUploadFileTypes" attribute allows one to specify a whitelist of allowed file extensions to limit which types of attachment can be uploaded to a service. There is no easy way to modify this property in ArcGIS Server Manager in the current release.
已邀请:

EsriSupport

赞同来自:

解决方案
The "allowedUploadFileTypes" attribute is stored in the map service's JSON description file in the config store. It can be edited by logging in to the REST Admin page.
  1. Open a web browser and navigate to
    http://<server name>:6080/arcgis/admin/login[size=13] [/size]
    and log in to the ArcGIS Server Administrator Directory with an administrators account.
  2. Click Services. Click the name of the service that has feature access enabled. Go to the edit link at the bottom of the page under Supported Operations.
  3. In the text box for the service (in JSON format):*, find the allowedUploadFileTypes tag and add the file extensions you want to allow inside the quotations after the colon (:). A completed entry would look similar to "allowedUploadFileTypes": ".png,.gpx". 
  4. Click the Save Edits button. Only the file types that are specified in the REST Admin can be uploaded when editing the feature service.


创建及修改时间
Created: 5/2/2013

Last Modified: 10/7/2013
原文链接
http://support.esri.com/en/kno ... 41138

要回复问题请先登录注册