ThinkPHP3.23 Why is Uploads parsed as a module?

there is a Uploads directory under the root directory, which can be correctly identified by accessing the image files through url, but non-image files will prompt that the Uploads controller does not exist, what?? What logic?

xxxxx.com/Uploads/projects/201812/01/5c0183497e274.jpg in this way, you can get the picture normally
, but if it is xxxxx.com/Uploads/projects/201812/01/5c0183497e274.docx , it will indicate that the controller cannot be loaded. I just hope that I can click this link to download the file.

ide2266" alt="" title="">

Jan.02,2022

because thinkphp requires that all URI request parameters be requested to index.php, when you request an image, TP will parse it to the same directory as the image, but other files will not. You can write a class or controller to download

Menu