storing uploaded photos and documents - filesystem vs database blob

前端 未结 6 2096
鱼传尺愫
鱼传尺愫 2020-12-06 06:31

My specific situation

Property management web site where users can upload photos and lease documents. For every apartment unit, there might be 4 ph

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 07:10

    While there are exceptions to everything, the general case is that storing images in the file system is your best bet. You can easily provide caching services to the images, you don't need to worry about additional code to handle image processing, and you can easily do maintenance on the images if needed through standard image editing methods.

    It sounds like your business model fits nicely into this scenario.

提交回复
热议问题