diff --git a/app/javascript/controllers/dropzone_controller.js b/app/javascript/controllers/dropzone_controller.js index 8255a479..3c7667c8 100644 --- a/app/javascript/controllers/dropzone_controller.js +++ b/app/javascript/controllers/dropzone_controller.js @@ -30,7 +30,8 @@ export default class extends Controller { } handleFiles(files) { - fileList.innerHTML = ''; + const fileInput = document.getElementById('content[]'); + fileInput.files = files; for (const file of files) { const listItem = document.createElement('div');