ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Display uploaded FileName of each dynamically added row using AngularJS in ASP.Net MVC<p>Hi&nbsp;mahesh213,</p> <p>You can't set fileupload value. FileUpload control does not allow you to set values nor it will retain values.</p> <p>So to display the file name you can disply it using databinding property.</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">View</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &gt; &lt;head&gt; &lt;title&gt;Index&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdnjs.cloudflare.com/ajax/libs/danialfarid-angular-file-upload/12.2.13/ng-file-upload.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; var app = angular.module(&#39;MyApp&#39;, [&#39;ngFileUpload&#39;]) app.controller(&#39;MyController&#39;, function ($scope, $window) { $scope.Customers = []; $scope.UploadFiles = function (files) { $scope.SelectedFiles = files; }; $scope.Add = function () { //Add the new item to the Array. var customer = {}; customer.Name = $scope.Name; customer.Country = $scope.Country; customer.FileName = $scope.SelectedFiles[0].name; $scope.Customers.push(customer); //Clear the TextBoxes. $scope.Name = &#34;&#34;; $scope.Country = &#34;&#34;; }; $scope.Remove = function (index) { //Find the record using Index from Array. var name = $scope.Customers[index].Name; if ($window.confirm(&#34;Do you want to delete: &#34; + name)) { //Remove the item from Array using Index. $scope.Customers.splice(index, 1); } } }); &lt;/script&gt; &lt;div ng-app=&#34;MyApp&#34; ng-controller=&#34;MyController&#34;&gt; &lt;table cellpadding=&#34;0&#34; cellspacing=&#34;0&#34;&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Country&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tbody ng-repeat=&#34;m in Customers&#34;&gt; &lt;tr&gt; &lt;td&gt;{{m.Name}}&lt;/td&gt; &lt;td&gt;{{m.Country}}&lt;/td&gt; &lt;td&gt;{{m.FileName}}&lt;/td&gt; &lt;td&gt;&lt;input type=&#34;button&#34; ng-click=&#34;Remove($index)&#34; value=&#34;Remove&#34; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;tfoot&gt; &lt;tr&gt; &lt;td&gt;&lt;input type=&#34;text&#34; ng-model=&#34;Name&#34; /&gt;&lt;/td&gt; &lt;td&gt;&lt;input type=&#34;text&#34; ng-model=&#34;Country&#34; /&gt;&lt;/td&gt; &lt;td&gt;&lt;input type=&#34;file&#34; ngf-select=&#34;UploadFiles($files)&#34; ng-model=&#34;file&#34; /&gt;&lt;/td&gt; &lt;td&gt;&lt;input type=&#34;button&#34; ng-click=&#34;Add()&#34; value=&#34;Add&#34; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/184100/Display-uploaded-FileName-of-each-dynamically-added-row-using-AngularJS-in-ASPNet-MVC/https://www.aspforums.net:443/Threads/184100/Display-uploaded-FileName-of-each-dynamically-added-row-using-AngularJS-in-ASPNet-MVC/Mon, 29 Jul 2019 08:10:17 GMT