Secure way to store files in web server?

前端 未结 7 594
自闭症患者
自闭症患者 2020-12-24 03:00

I want my files to be secure in my web server. Only authenticated users to access those files should be able to access those files. I thought of storing files in database as

7条回答
  •  自闭症患者
    2020-12-24 03:24

    Storing files in DB is very bad practice. Very good practice to store only information about file. Name, extension. Files save on server like $id.$ext. It will be a good architecture. And when user download file, he take file with name in DB.
    Sorry for my english.

提交回复
热议问题