Home>

https://gerardbalaoro.github.io/jQuery.filer/
I am using this library, and now I can upload files and display thumbnails.
I want to display a thumbnail of the uploaded file on another page so that I can upload or delete the file again there. (Is it called edit mode?)

I looked at the document and thought that it would be better to call the append function, but I tried, but I get an error.
I can't understand the contents even if I read the error message. I think that it is an error message that it is not a function called a, but it is hard to chase because I think it is a function called in the call of the append function.

Source code (excerpt)
        
          File attachment
            
            <input type="file" name="files[]" multiple="multiple" accept="image/*,.pdf,.doc,.docx,.xls,.xlsx"><br>
            
        
      let filerKit = $('#edit_filer_input').prop("jFiler");
        filerKit.append({
          name: "prof.jpg",
          size: 1,
          type: "image/jpg",
          file: "/uploads/c5a7d5031c1da2368040bf03e34ff0eb.jpg"
        });
Error message displayed in Chrome browser console
TypeError: a(...).error is not a function
    at Object.renderFile (jquery.filer.min.js:8)
    at Object.create (jquery.filer.min.js:8)
    at Object._box (jquery.filer.min.js:8)
    at Object._append (jquery.filer.min.js:8)
    at Object.append (jquery.filer.min.js:8)
    at edit_news_modal.js:151
What I tried

filerKit worked by calling the reset function, so it's an object properly? I think that I have acquired.

Supplemental information (FW/tool ​​version, etc.)

・Jquery.filer Version: 1.3
・Jquery-3.5.1.min.js