Skip to content

Commit

Permalink
Added "[]" to the name of the hidden fields, so they can store an "ar…
Browse files Browse the repository at this point in the history
…ray" of filenames.
  • Loading branch information
kalkehcoisa committed Aug 6, 2013
1 parent f33aab0 commit a51227c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setup_filecollector = function($, wrapperElementId, uploadedWidgetHtmlName, send
var files_inputs = '';
$('#'+wrapperElementId+' .filelink').each(function(i, el)
{
files_inputs += '<input type="hidden" value="'+$(el).attr('id')+'" name="'+uploadedWidgetHtmlName+'"/>';
files_inputs += '<input type="hidden" value="'+$(el).attr('id')+'" name="'+uploadedWidgetHtmlName+'[]"/>';
});
$('#'+wrapperElementId+" #hidden_container").append(files_inputs);
};
Expand Down

0 comments on commit a51227c

Please sign in to comment.