3.7 renderFile file download
May 14, 2021
JFinal manual
Controller provides the renderFile family of methods to support file downloads. T
he default download path for a file is under the download subpath under the project root path, which is called the file download base path. Y
ou can set up a file download base path through me.setBaseDownloadPathpath in the JFinalConfig.configConstant (Constants me) method, which accepts an absolute path that starts with "/" or starts with a windows disk character, so that the base path can be pointed beyond the project root path for easy stand-alone multi-instance deployment.
When the path parameter is set to a relative path, it is a relative path based on the root of the project