found error in upload.ejs view. Was passing file data to name variable.