Reputation: 9800
I am working on a CakePHP 3 project. This project requires many images and pdf files to be uploaded later when project goes live.
At present all images required for design of website is stored in webroot/img
Storing images later will make the application size large. I want to keep the application part as clean as possible and store all media files at some other place.
Is it a good practice to store all media files on a separate subdomain
like media.website.com
? Can I upload images to this subdomain with CakePHP ?
Upvotes: 0
Views: 921
Reputation: 425
You can use Amazon AWS S3 service to store all media files. It is very fast with low cost.
Thanks, Saurabh
Upvotes: 0