Im creating a file upload function in node.js with express 3.
I would like to grab the file extension of the image. so i can rename the file and then append the file
import extname in order to return the extension the file:
import { extname } from 'path'; extname(file.originalname);
where file is the file 'name' of form