String constants must end with a double quote inject js activity

Im having issues with double quotes I did try escaping the “” but cant do it without error TIA

Here is the code

(function() {
// Find the “Choose File” input element based on attributes
var fileInput = document.querySelector(‘input[type=“file”]’);

// Trigger a click event on the input element
if (fileInput) {;


It’s restriction of ExpressionEditor. For now, can you try it as single line as the following?

"var fileInput = document.querySelector(‘input[type=""file""]’);if (fileInput) {;}"


"function() {var fileInput = document.querySelector('input[type=""file""]');if (fileInput) {;}}"