Get the file from input element for a preview