# How to download files from my website?

**URL:** <https://discourse.cakephp.org/t/how-to-download-files-from-my-website/10668>\
**Category:** Need Help\
**Tags:** help\
**Created:** [October 10, 2022, 4:08am UTC](https://discourse.cakephp.org/t/how-to-download-files-from-my-website/10668 "2022-10-10T04:08:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cins](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@cins](https://discourse.cakephp.org/u/cins)\
**Post date:** [October 10, 2022, 4:08am UTC](https://discourse.cakephp.org/t/how-to-download-files-from-my-website/10668/1 "2022-10-10T04:08:04Z")

</div>

Dear all,

I m new on cakephp.

I created some controllers and layout, everything is ok.

I have a question about downloading files.

I would like users to download some files on my website.

Is there any special way to do it ? I saw I need to create FilesController and add some routes ?

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [October 10, 2022, 3:36pm UTC](https://discourse.cakephp.org/t/how-to-download-files-from-my-website/10668/2 "2022-10-10T15:36:15Z")

</div>

You can provide download functionality in any controller, doesn’t have to be a specific FilesController.

See [Request & Response Objects - 4.x](https://book.cakephp.org/4/en/controllers/request-response.html#sending-files) on what you have to do in your controller methods to send a file.
