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

require(["esri/tasks/DataFile"], function(DataFile) { /* code goes here */ });

Description

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

Samples

Search for samples that use this class.

Constructors

NameSummary
new 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 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:
require([
  "esri/tasks/Geoprocessor", "esri/tasks/DataFile", ... 
], function(Geoprocessor, DataFile, ... ) {
  var gp = new Geoprocessor( ... );
  function requestSucceeded(result) {
    var itemID = result.item.itemID;
    var dataFile = new DataFile();
    dataFile.itemID = itemID;
    var params = {
      "Input_File": dataFile
    };
    gp.execute(params, gpResult);
  }
  ...
});

<String> url

URL to the location of the data file.