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
I believe you can do the following to get the extension of a file name.
var path = require('path') path.extname('index.html') // returns '.html'