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 Browse / View Files empty

  • Minor

I have a dir which contains many files and the webGUI stays empty:

 

16048120_2021-02-0900_25_16.thumb.png.68c0f9334de3591893ad7d55c0abab6a.png

 

This happens because of /usr/local/emhttp/plugins/dynamix/include/Browse.php which executes the following:

exec("shopt -s dotglob; stat -L -c'%F|%n|%s|%Y' $all 2>/dev/null",$file);

 

I executed it manually and it returns an error:

stat -L -c'%F|%n|%s|%Y' /usr/local/emhttp/mnt/cache/Music/randomfiles/*
-bash: /usr/bin/stat: Argument list too long

 

Maybe it should be changed as follows:

exec("shopt -s dotglob; stat -L -c'%F|%n|%s|%Y' $all 2>/dev/null",$file,$return_var);
...
echo "<thead><tr><th>Type</th><th class='sorter-text'>Name</th><th>Size</th><th>Last Modified</th><th>Location</th></tr></thead>";
switch ($return_var) {
    case 0:
        break;
    case 1:
        echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>This directory is empty.</strong></th></tr></thead>";
        break;
    case 126:
        echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>This directory contains too many files!</strong></th></tr></thead>";
        break;
    default:
       echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>Unknown error " . intval($return_var) . "</strong></th></tr></thead>";
}

 

 

Outputs:

1046842111_2021-02-0900_51_20.png.49d63addfa10e8ec3a738beb918ea992.png

 

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.