Select to view content in your preferred language

Specify allowedUploadFileTypes and maxUploadFileSize for WebTool published from Notebook

42
0
yesterday
MarcHoogerwerf_EsriNL
Esri Contributor

Hi, I've published a WebTool from an ArcGIS Online Notebook and want to allow specific local files to be uploaded when using the WebTool as a custom webtool in the Experience Builder Analysis widget.

I can get the Local File upload to work by setting the capabilities to Uploads in webtoolService.json, but fail to set allowedUploadFileTypes (.xlsx, .xls) and maxUploadFilesSize (2000). Am I putting these values in the wrong file?

{
    "currentVersion": 11.4,
    "cimVersion": "2.9.0",
    "serviceDescription": "uplolad excel",
    "executionType": "esriExecutionTypeAsynchronous",
    "resultMapServerName": "",
    "maximumRecords": 1000,
    "capabilities": "Uploads",
    "maxUploadFileSize": 2000,
    "allowedUploadFileTypes": "xlsx,xls",
    "tasks": [
        "Upload_Excel"
    ],
    "serviceUrl": null,
    "timeoutInMinutes": 15
}

I've published a more detailed post describing the problem in de Experience Builder community here.

 

Marc

0 Kudos
0 Replies