I am using the ajax upload from Valums http://valums.com/ajax-upload/ and
have it uploading my images fine.
 
Problem I have left to solve is I have a drop down to select an Album to
save the image to. Does anyone have experience with this plug in that may
halp point me in the right direction on how to include the value from the
drop down when uploading? I know it has to do with the data: part but cant
quite get it. Any help would be great.
 
new AjaxUpload('#upload_button_id', {
    action: 'entries/add',
    name: 'data[Image][name1]',
  // Additional data to send
  data: {
    example_key1 : 'example_value',
    example_key2 : 'example_value2'
  },
  
  autoSubmit: true,
  
  responseType: false,
  
  onChange: function(file, extension){},
 
  onSubmit: function(file, extension) {},
  onComplete: function(file, response) {}
});
 
Thanks
 
Dave 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to