How to return an absolute path if i have only a relative path in NestJS?

后端 未结 0 1124
囚心锁ツ
囚心锁ツ 2021-02-20 17:41

I have a NestJS project with a typeORM driver (MySQL). When a user uploads a photo then the server saves file in public directory and saves a relative path in DB: /public/user22

相关标签:
回答
  • 消灭零回复
提交回复
热议问题