Please suggest me how to dynamically display the variable depending upon the number of files attached.