How to pass FileInput in stage to Dataframe in next stage of pipeline

Is there a way to select a file using FileInput in the 1st stage of a pipeline and then use that result as a dataframe in the next stage?