add shapefile to Map But not upload file to server

Discussion created by ammarGomaa on Sep 5, 2012
I work in project javascript with esri api

In this example

the end user should upload shapefile if already i have shape and need to display it into map but the problem in the example code take the file from the form data

if there are any way to path file directly without upload file or code that serialize shapefile to featurecollection json

thanks :-)