I've been trying to replace the default file upload with Bootstrap custom file input.
<input type="file"></input> with
<div class="custom-file"> <input type="file" class="custom-file-input" id="validatedCustomFile"> <label class="custom-file-label" for="validatedCustomFile">Choose file...</label> </div>
in the core/filemanager_uploadform template. I also included the jQuery to replace "Choose file..." with the name of the selected file. The jQuery doesn't seem to work in the Moodle dialogue (modal), meaning the file name doesn't replace "Choose file..." in the modal. However, the jQuery works as intended when I preview the template in the template library. Can anyone please provide guidance on how to pursue this issue?