Im trying to display the uploaded image name for the apex:inputfile. I think i need to modify my controller to add the display action,but dont know how to do it,any ideas?
<apex:page >
<apex:form id="theForm">
<apex:slds />
<apex:pageBlock >
<apex:pageBlockSection >
<div class="slds-form-element">
<span class="slds-form-element__label" id="file-selector-id">Attachment</span>
<div class="slds-form-element__control">
<div class="slds-file-selector slds-file-selector_files">
<div class="slds-file-selector__dropzone">
<apex:inputFile styleClass="slds-file-selector__input slds-assistive-text" accept="image/png" id="fileUploadInput01" value="foo" />
<apex:outputLabel styleClass="slds-file-selector__body" for="fileUploadInput01">
<span class="slds-file-selector__button slds-button slds-button_neutral">
<svg class="slds-button__icon slds-button__icon_left" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#upload"></use>
</svg>
Upload Files
</span>
<span class="slds-file-selector__text slds-medium-show">or Drop Files</span>
</apex:outputLabel>
</div>
</div>
</div>
</div>
<apex:commandButton value="Save" action="{!save}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>