How add shapefile from path

584
0
03-30-2013 11:48 PM
IbrahimAttia
New Contributor
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
0 Kudos
0 Replies