How can I allow a user to download a file which is stored outside of the webroot?

前端 未结 4 1219
无人及你
无人及你 2020-12-06 07:27

I am developing a system which allows registered users (who could be anybody) to upload files. I\'ve block mime-types etc. to attempt to restrict the files to .doc, .docx a

4条回答
  •  广开言路
    2020-12-06 07:45

    See the answers to this similar question: Refer to a file outside the website tree for downloading purposes, which links to the PHP header function manual page.

提交回复
热议问题