javascript – How to obtain multiple input files within a table?

friends. I hope you can help me with the following problem.
I have a table that contains several rows of input file, I want to make every time a file is uploaded to the server, the problem I have is that when I upload a file, it goes to the server correctly, but when I upload a different file in another input file, the file that goes to the server is the first file that I loaded. No matter what input file of any row, always take the first one that I went up.

I'm still a beginner using javascript.
I hope you can help me.
Thank you


    
    
    
    @foreach (var item in ViewBag.plantillas)
        {
         
        
        
        
        }
 
TEMPLATE