我们移植到CF 2016,现在在计划的任务中遇到错误。
此代码用于:
<cfschedule action="update" task="ia_scheduler" operation="HTTPRequest"
url="#sURL#" startdate="#runDate#" starttime="#runTime#"
path="#request.basepath#" file="ia_scheduler.html"
resolveurl="yes" publish="yes" interval="3600" requesttimeout="900">
如果我将html更改为.txt,它将工作,但我更喜欢在html扩展中使用。
file="ia_scheduler.html" to file="ia_scheduler.txt"
错误抛出
Invalid extension of the file name.
Valid extensions are : log,txt.
如何在cfschedule中保存到html文件?
发布于 2020-03-02 00:10:22
我已经讨论过你的问题了。此处存储计划任务的已发布输出的文件名。默认情况下,该文件只能具有.txt或.log扩展名。中添加更多扩展。
cfusion\lib\neo-cron xml.
您可以在字符串标记下检查xml文件中只有日志,txt。因此,您还必须添加html。然后也检查html文件。希望它能成功。谢谢。
https://stackoverflow.com/questions/60480208
复制相似问题