On replaceFileInput store a reference to the new input

Store the new cloned file input in the data as "replacedFileInput"

Test for it with

    data.replacedFileInput || data.fileInput
Merge pull request #3240 from dariusj18/patch-2

On replaceFileInput store a reference to the new input