ibrahim.attia

How add shapefile from path

Discussion created by ibrahim.attia on Mar 30, 2013
hi,
i use this sample
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/portal_addshapefile.html
which allows you to upload a shapefile in zip file format
but this function

esri.request({
url: portalUrl + '/rest/content/features/generate',
content: myContent,
form: dojo.byId('uploadForm'),
handleAs: 'json',
load: dojo.hitch(this, function (response) {
addShapefileToMap(response.featureCollection);
})


automatically upload file from <input type="file" > in form which name is "uploadForm"

i can`t change value in fileupload value due to security

then i need call this function but i put my url or path

Outcomes