changed fileDetails to contain undefined