Issue with Content type using <cfform> or <form> and <cffile>
I'm receiving the below error whenever i attempt to upload a file.
Invalid content type: ''.
The cffile action="upload" requires forms to use enctype="multipart/form-data".
I'm using <cfform> and have the enctype="Multipart/form-data".
If i do not have a enctype ColdFusion states that the default enctype is incorrect.
I tried using <form> but experienced the same issue.
My <cfform> is in an include and is as follows:
---------------
<cfform enctype="multipart/form-data" name="qb_email" action="OA_util_rpt3.cfm?List=#url.list#&t=#url.t#" method="POST" onsubmit="return FormCheck(this)">
---------------
Anyone have any ideas as to why i'm getting this error when i do in fact have enctype defined. I have this exact same code in several other pages and everywhere else it works fine. However, this is the only one where i go from a folder back to main directory, then to another folder for the include, and then back to main directory and then to batch to upload file.
Another interesting thing is the file is uploaded into my Batch folder but i get the message, and if i go back to the page, the file is listed and will be attached to my email as intended.
Thanks,
Daniel
