问题描述
<cfparam name="urltarget" default="#urlDecode(url.urltarget)#">
<cfset req = cgi.request_method>
<!--- if req is post,force them to have FORM fields --->
<cfif req is "post" and structIsEmpty(form)>
<cfset req = "get">
</cfif>
<cfif len(urltarget)>
<cfhttp url="#urltarget#" method="#req#">
<cfif req is "post">
<cfloop item="f" collection="#form#">
<cfhttpparam type="formfield" name="#f#" value="#form[f]#">
</cfloop>
</cfif>
</cfhttp>
<cfoutput>#trim(cfhttp.fileContent)#</cfoutput>
</cfif>
现在我在我的服务器上上传了一个简单的脚本,名称为“upload.cfm”。
<cffile action="upload" filefield="extfile" destination="/my/path" nameconflict="makeunique" />*
我无法通过发布请求上传。
http://localhost/proxy.cfm?urltarget=http://localhost/upoad.cfm
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)