How to upload a file to a specified location with CMS and fix its name
This article mainly introduces "how to upload files to a specified location with CMS and fixed naming". In daily operation, I believe many people have doubts about how to upload files to a specified location with CMS and have fixed naming problems. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts of "how to upload files to a specified location with CMS and fixed naming". Next, please follow the editor to study!
Upload the file to the specified directory name, for example, I need to upload a file to / cache/my.txt, fixed location, fixed name.
1. Create a controller: / dayrui/App/Demo/Controllers/Upload.php