Upload Custom File

Is it possible to use the “UPLOAD” component to upload a custom file type (binary or ASCII format text file)? I would like to upload a custom file type, have a ‘def’ process the file and then distribute the results (in this case a DataFrame) for use by the rest of the code. Currently I am hardcoding the file I want to view. But, if I ever want to examine another file, I have to copy and paste the full path and filename into my code and rerun it.