manage uploaded files in database or file system?

前端 未结 2 1563
甜味超标
甜味超标 2020-12-21 06:25

I\'m going to incorporate the feature for my users to upload small files which are under 2mb (jpg, gif, pdf and docs). For page loading times purposes and generally managing

2条回答
  •  醉话见心
    2020-12-21 06:49

    There are pros and cons for both approaches. Keeping files in DB will make management much simpler. From another side, files stored on filesystem can be delivered more effectively, saving IO and CPU resources.

提交回复
热议问题