2

when i call uploadifySettings("scriptData", { 'description': description });

it mean that param description is set one time after click button upload, how can i set param description on each file that uploads ? for example i want to upload 10 files so i can change param description 10 times

kusanagi
  • 14,296
  • 20
  • 86
  • 111
  • pay attention that that now it's now 'scriptData' anymore, it's 'formData'. http://www.uploadify.com/documentation/uploadify/formdata/ – Oren Roth Jun 06 '13 at 14:05

1 Answers1

4

Check out the documentation: http://www.uploadify.com/documentation/

You could use the onComplete event to change the settings

  $('#fileInput').uploadify({
    'uploader'  : 'uploadify.swf',
    'script'    : 'uploadify.php',
    'cancelImg' : 'cancel.png',
    'auto'      : true,
    'folder'    : '/uploads'.
    'onComplete': function() {
                     // do whatever logic to change the description
                     var descr = ""; // <- cool logic goes here
                     // change scriptData
                     $('$fileInput').uploadifySettings("scriptData", {'description': descr });
                 }
   });
Dan Heberden
  • 10,990
  • 3
  • 33
  • 29