Answered
multipart/form-data and special characters - HELP!!!
How can I get a form to work in CF8 that both can upload a
file, and submit special characters withot being corrupt. Seems
that this cannot be done!!! Try it yourself!
I've even tried <form enctype="multipart/form-data: charset=iso-8859-1">
That solved the problem with the special characters, but it created a new one :(
If I browse a file in my file input field and submit the form, CF gives the following error message:
Invalid content type: application/x-www-form-urlencoded.
The cffile action="upload" requires forms to use enctype="multipart/form-data".
The enctype is ignored, and the default (application/x-www-form) is used instead. If I remove ": charset=iso-8859-1" from the form attribute enctype, the file gets uploaded, but on the other hand, special characters gets corrupt.
I've made a ugly solution where I via javascript before onSubmit appends input text fields and textareas in my form values to the form action value, and the let CF read those variables from the URL scope instead of the FORM scope. Then the special characters will survive, and the image will be uploaded at the same time. But I'm getting tired of this solution. There should be a more simple solution to it. COME ON ADOBE - TELL US!
I've even tried <form enctype="multipart/form-data: charset=iso-8859-1">
That solved the problem with the special characters, but it created a new one :(
If I browse a file in my file input field and submit the form, CF gives the following error message:
Invalid content type: application/x-www-form-urlencoded.
The cffile action="upload" requires forms to use enctype="multipart/form-data".
The enctype is ignored, and the default (application/x-www-form) is used instead. If I remove ": charset=iso-8859-1" from the form attribute enctype, the file gets uploaded, but on the other hand, special characters gets corrupt.
I've made a ugly solution where I via javascript before onSubmit appends input text fields and textareas in my form values to the form action value, and the let CF read those variables from the URL scope instead of the FORM scope. Then the special characters will survive, and the image will be uploaded at the same time. But I'm getting tired of this solution. There should be a more simple solution to it. COME ON ADOBE - TELL US!
