Retrieve path for selected file in "Document (File name)"

The fie d I have defined in a Control application is (Field_Filename). I can get the filename from a field that includes the full upload path. Are there commands that can extract just the filename or just the path?

When I run the application and select the file to upload is there a way to get the “remote” folder being selected?
Can this be passed along with the other information for this type of field in Scriptcase?
Is there a function or module I can call to do this?

Sometimes showing the details of “where” a file was uploaded and saving them as other fields in a record are handy for future reference.

Thank you for any help that anyone can provide.