bit of a strange error i am using forms on my page...
# cfml-beginners
g
bit of a strange error i am using forms on my page, and one of forms have enctype defined as multipart/form-data and whenever i am uploading i am getting an error which says
Copy code
DetailThe files upload action requires forms to use enctype="multipart/form-data".
MessageInvalid content type: ''.
it seems its not picking up the file or something
Copy code
coldfusion.tagext.io.FileUtils$CFFileNonMultipartException: Invalid content type: ''. at coldfusion.tagext.io.FileTag.uploadAll(FileTag.java:689) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:411) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3851) at
a
It's difficult to say anything sensible about what yer doing wrong without seeing any code :-/
http://www.catb.org/~esr/faqs/smart-questions.html / http://sscce.org/ Not sure how many times I've shared this guidance with you. If just once you'd actually read them and pay attn to them.
r
@gsr Can you post the <cfform>? At least the <cfform> line to start with, but the entire form would be preferred. And... the catching program would be good as well - that is, the program referred to in your "action" parameter.
@gsr A long time ago in a galaxy far, far away, I wrote a pair of custom tags to help with the grab and upload of files. You're welcome to use them, dissect them, employ them at will, just give me credit if they're used in a for-profit application. But I will warn you - these are from 2003, so they do not use the latest and greatest.