how to use dirname fuction in input type in node code example Example: get dirname to last directory node path.basename(path.dirname(filename))