I am creating a flash page which allows the user to select a
XLS file, then to read that file with a cfm script. So, I started
using the following way to read an excel file "microsoft jet"
this part works but I would like to
1) read the file the user wants to upload from flash
2) upload it via <cffile> in a cfm script
3) use the cfm script to read the xls file
my code only represents number 3)
number 2) doesn't work:
i(it says:CFFILE action="upload" requires forms to use
enctype="multipart/form-data".)
BUT: I don't want to create the form in cfm but in Flash!
The code for 2) and 3) IS:
Assume you're using 6.1 or 7.x ColdFusion.
If so, don't even screw around with ODBC. Lot's of minor
issues but the major issue you have with ODBC is you won't get more
than 255 characters from a column without some kung fu.
Go to www.hxtt.com and use their type 4 JDBC driver for Excel
which is contained in a single .jar file. It's the only type 4 I
know of.
Place that in /cfusionmx/runtime/servers/lib.
HXTT just went through an Excel driver beta that I
participated in -due to an internal project -and we found a few
issues and they were fixed.
Here's a typical URL to open up .xls files on the root of the
C: drive using the HXTT driver.