Skip to main content
July 23, 2009
Question

Additional fields in CFFILEUPLOAD in ColdFusion 9 Beta

  • July 23, 2009
  • 1 reply
  • 1823 views

Dear all, While browsing through the new juicy CF9 goodies I came across a wonderful new tag called CFFILEUPLOAD that allows for multiple file uploads in combination with the new UPLOADALL feature of the CFFILE tag. So far so good.

Unfortunately, as always with Flash, all information except for the URL data goes straight into the FILEDATA formfield. The real problem that renders this new wonderful tag useless is that it seems that only the first name-value pair of the query string is passed to the target template i.e specifying the target URL as /index.cfm?a=1&b=2&c=3 will only  pass "a=1" to the server, the rest disappears in the blue. Does it sound familar? I can imagine some workarounds but shouldn't it be passing all name-value pairs straight out of the box?

I am running CF9 Beta 32 bit for Mac with internal development server.
Browsers that show this issue (Firefox 3.5 and Safari 4.0, both with Flash 10 plugin installed)
Does anyone know the solution for this problem?
Thanks!
Yuri
    This topic has been closed for replies.

    1 reply

    July 23, 2009

    After doing some experiments I found the anwer to this riddle: the query string should be URLencoded, otherwise it will be cut at the first ampersand ("&"). That means substituting all "&" for "%26". Quite a simple solution actually. I guess it would be great if the manual would stress the need to encode the querystring.

    Thanks for the great product!

    Yuri