Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: DataFile

dojo.require("esri.tasks.DataFile")

Description

(Added at v1.0)
A geoprocessing data object containing a data source.

Samples

Search for samples that use this class.

Constructors

NameSummary
new esri.tasks.DataFile()Creates a new DataFile object.

Properties

NameTypeSummary
itemIDStringThe ID of the uploaded file returned as a result of the upload operation.
urlStringURL to the location of the data file.
Constructor Details

new esri.tasks.DataFile()

Creates a new DataFile object. The constructor takes no parameters.
Property Details

<String> itemID

The ID of the uploaded file returned as a result of the upload operation. For ArcGIS Server 10.1 and greater services that support uploads this class can be used to specify an uploaded item as input by specifying the ItemID.
Sample:

function requestSucceeded(result) {

  var itemID = result.item.itemID;

  var dataFile = new esri.tasks.DataFile();

  dataFile.itemID = itemID;

  var params = {

    "Input_File": dataFile

  };

  gp.execute(params, gpResult);

}

 

<String> url

URL to the location of the data file.
Show Modal