Commit 9f23bfd0 authored by Romain Courteaud's avatar Romain Courteaud

Release version 3.9.0

Include support for ERP5 FileField
parent 50944886
...@@ -9026,16 +9026,25 @@ return new Parser; ...@@ -9026,16 +9026,25 @@ return new Parser;
.push(function (evt) { .push(function (evt) {
var form_data = JSON.parse(evt.target.result), var form_data = JSON.parse(evt.target.result),
data = new FormData(), data = new FormData(),
array,
i, i,
key; key,
value;
for (key in form_data) { for (key in form_data) {
if (form_data.hasOwnProperty(key)) { if (form_data.hasOwnProperty(key)) {
if (Array.isArray(form_data[key])) { if (Array.isArray(form_data[key])) {
for (i = 0; i < form_data[key].length; i += 1) { array = form_data[key];
data.append(key, form_data[key][i]);
}
} else { } else {
data.append(key, form_data[key]); array = [form_data[key]];
}
for (i = 0; i < array.length; i += 1) {
value = array[i];
if (typeof value === "object") {
data.append(key, jIO.util.dataURItoBlob(value.url),
value.file_name);
} else {
data.append(key, value);
}
} }
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "jio", "name": "jio",
"version": "v3.8.0", "version": "v3.9.0",
"license": "LGPLv3", "license": "LGPLv3",
"author": "Nexedi SA", "author": "Nexedi SA",
"contributors": [ "contributors": [
......
Markdown is supported
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