using file.headers['content-type'] to lookup contentType extension

This should fix the "_NaN on all uploads - Related to changes with Connect" issue