It’s pretty common to have to convert an org.apache.myfaces.trinidad.model.UploadedFile to a java.io.File when working with an ADF <af:inputFile>.

Working with a java.io.File being the only way to retrieve values from a CSV.

Here is a simple code snippet to do so :