Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

webgui: Revised filetree.js 6.10+ added data-picktop default=/mnt

Featured Replies

Hi @bonienlAre changes required to use the new vers of filedrop?

 

I am looking to see why this is not working in the NUT Plugin but not sure what needs to be changed.

    <input id="editfile" type="text" name="editfile" value="" readonly="" data-pickcloseonfile="true" data-pickfilter="conf,users" data-pickroot="/etc/nut" data-pickfolders="false" required="required" >



    $('#editfile').fileTreeAttach(null, null, function(file) {
        $('#editfile').val(file);
    });

    $('#editfile').on('change', function () {
        var Editfile = $('#editfile').val();
        $.getJSON('/plugins/nut/include/nut_edit.php', {editfile: Editfile}, function (data) {
                editor.setValue(data);
            }
        );
    });

 

I reverted filedrop.js to the older version, which was a modified version to work with Unraid.

The older version I had to update to make it work with jQuery 3.6.

Unfortunately jQuery 3.6 removed the possibility to extend events, this is something foreseen for jQuery 4, hence at the moment the “drop” functionality doesn’t work. I have file uploads attached to the click event.

 

See the display settings page, which uses filedrop.js to upload header images.

 

  • Author
10 hours ago, bonienl said:

I reverted filedrop.js to the older version, which was a modified version to work with Unraid.

The older version I had to update to make it work with jQuery 3.6.

Unfortunately jQuery 3.6 removed the possibility to extend events, this is something foreseen for jQuery 4, hence at the moment the “drop” functionality doesn’t work. I have file uploads attached to the click event.

 

See the display settings page, which uses filedrop.js to upload header images.

 

Sorry misread the change is filetree i am having an issue with no filedrop.

There is an additional setting added in filetree which defines the top level folder. A user can not go beyond this level, by default this setting is /mnt, but since you are working in a different folder altogether you need to specify this top level setting. Add the following variable to the input element

 

data-picktop="/etc/nut"

 

  • SimonF changed the title to webgui: Revised filetree.js 6.10+ added data-picktop default=/mnt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.