uploadFile: fstat the open fd instead of stat the path