Revision 0c8ee83b
Von Sven Schöling vor mehr als 3 Jahren hinzugefügt
js/kivi.ImageUpload.js | ||
---|---|---|
54 | 54 |
}; |
55 | 55 |
|
56 | 56 |
ns.upload_selected_files = function(id, type, maxsize) { |
57 |
$("#upload_modal").modal("open"); |
|
58 |
|
|
57 | 59 |
kivi.FileDB.retrieve_all((myfiles) => { |
58 | 60 |
let filesize = 0; |
59 | 61 |
myfiles.forEach(file => { |
... | ... | |
64 | 66 |
} |
65 | 67 |
|
66 | 68 |
let data = new FormData(); |
67 |
data.append("file", file);
|
|
69 |
data.append("uploadfiles[]", file);
|
|
68 | 70 |
data.append("action", "File/ajax_files_uploaded"); |
69 | 71 |
data.append("json", "1"); |
70 | 72 |
data.append("object_type", type); |
Auch abrufbar als: Unified diff
ImageUpload: fix: richtiger form slot