fixed getUploadDir in entity