내 서버에 파일을 업로드하는 데이 코드를 사용하려고하는데 오류가 발생했습니다.CFFILE 모든 문제 업로드 - Coldfusion 9
<cfif isdefined("form.submit")>
<cffile action="uploadall" destination="#expandpath('../../images/Uploads/after')#">
</cfif>
<cfform action="#cgi.script_name#" enctype="multipart/form-data">
<cfinput type="file" name="attachment1"><br>
<cfinput type="file" name="attachment2"><br>
<cfinput type="file" name="attachment3"><br>
<cfinput type="submit" name=" submit" value="submit">
</cfform>
이것은 오류입니다 :
이
코드입니다The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
Invalid content type: application/x-www-form-urlencoded.
The files upload action requires forms to use enctype="multipart/form-data".
The error occurred in E:\sites\Example.Com\testing\handlers\upload\after.cfm: line 20
가 있습니까 CF9 또는 9.0.1을 실행하고 있습니까? 9.0.1 업데이터에서 수정 된 CF9의 원본 버전의 파일 업로드 제어에는 여러 가지 문제가있었습니다. – Brian
9.0.1을 사용하고 있습니다. – Geo