in cake1.2 and swfupload, I want to save a variable passed from the cake
controller to the files -> upload function. How do I do this?
In my default.ctp file, I have this:
window.onload = function() {
var settings = {
flash_url : "http://localhost/js/swfupload/swfupload_f9.swf",
upload_url:
http://localhost/*files/upload*<http://localhost/files/upload>,
...... so on }
in the files controller -> upload action, I want to save to the database.
How do I pass from cake an id to the files->upload function? One way I've
thought is to set the upload_url =
http://localhost/files/upload/{parameter1}/{parameter2}. But I want to
dynamically set this parameter. Any other clean solutions?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---