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;
.push(function (evt) {
var form_data = JSON.parse(evt.target.result),
data = new FormData(),
array,
i,
key;
key,
value;
for (key in form_data) {
if (form_data.hasOwnProperty(key)) {
if (Array.isArray(form_data[key])) {
for (i = 0; i < form_data[key].length; i += 1) {
data.append(key, form_data[key][i]);
}
array = form_data[key];
} 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 diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "jio",
"version": "v3.8.0",
"version": "v3.9.0",
"license": "LGPLv3",
"author": "Nexedi SA",
"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