Commit fb255046 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with multi upload and iframe transportation

parent 0b12716d
This diff is collapsed.
......@@ -687,6 +687,10 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
formData: {'uniq_directory': $this.uploadfiles[iid]},
forceIframeTransport: $this.options.forceIframeTransport,
add: function (e, data) {
// for iframe transportation, the files attribute is not the right one
data.files = data.originalFiles;
// update the display
if (data.files.length == 1) {
$("#"+iid).val( data.files[0].name );
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment