I have a simple apex repeat with add filename tag. When I add the following line "inputfile" the previous line shows no file chosen. Is it possible to bind the filename with the inputfile button with javascript?
Apex
<apex:repeat value="{!newAttachments}" var="newAtt">
<apex:outputLabel value="Upload photo"/>
<apex:inputFile id="inputfile" value="{!newAtt.body}" filename="{!newAtt.name}"/><br/>
</apex:repeat><br/>
<apex:commandButton value="Add More" action="{!addMore}" onclick="checkFileSize(event);"/>