I'm not sure what to do as I don't see any error and dev tools doesn't report anything. I'm attempting to implement this Add Shapefile sample into a button click on a new custom widget. The issue seems to be happening in setting up the "request"
generateFeatureCollection<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">function</SPAN> <SPAN class="punctuation token">(</SPAN>fileName<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">var</SPAN> name1 <SPAN class="operator token">=</SPAN> fileName<SPAN class="punctuation token">.</SPAN><SPAN class="token function">split</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"."</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//Chrome and IE add c:\fakepath to the value - we need to remove it</SPAN>
<SPAN class="comment token"><SPAN>//See this link for more info: </SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdavidwalsh.name%2Ffakepath" target="_blank">http://davidwalsh.name/fakepath</A></SPAN>
<SPAN class="keyword token">var</SPAN> name <SPAN class="operator token">=</SPAN> name1<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">replace</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"c:\\fakepath\\"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
console<SPAN class="punctuation token">.</SPAN><SPAN class="token function">log</SPAN><SPAN