where is the best place to save images from users upload

前端 未结 5 448
挽巷
挽巷 2020-11-27 11:37

I have a website that shows galleries. Users can upload their own content from the web (by entering a URL) or by uploading a picture from their computer.

I am storin

5条回答
  •  生来不讨喜
    2020-11-27 12:24

    You can save your trusted data just in parallel of htdocs/www folder so that any user can not access that folder. Also you can add .htaccess authentication on your trusted data (for .htaccess you should kept your .htpasswd file in parallel of htdocs/www folder) if you are using apache.

提交回复
热议问题