Hi,
in file dialogs not all folders are shown, even if the json-answer contains all items.
i.e
in config:
var $browserRestrictFolders = array('/home/vbox/VirtualBox VMs', '/home/shared/iso');
json answer is
[{"expanded":false,"selected":false,"path":"\/home\/vbox\/VirtualBox VMs","name":"\/home\/vbox\/VirtualBox
VMs","type":"folder","children":[]},[{"expanded":false,"selected":false,"path":"\/home\/shared\/iso
\/debian","name":"debian","type":"folder","children":[]},{"expanded":false,"selected":false,"path":"
\/home\/shared\/iso\/windows","name":"windows","type":"folder","children":[]}]]
The only directory shown in dialogs is "'/home/vbox/VirtualBox VMs".
If I remove the directory from the list, no directory is shown in the dialogs
that worked in old 4.x versions
aahh - I now now what the problem is:
in "Optical Media" Tab I can only select vhd etc files, in "Harddrive" tab only iso files. The selection seems to be swapped
I am unable to reproduce this. Can you attach your config.php (without passwords of course)? Also, which web browser are you using?
Try the following:
Open Manager for virtual media
the same problem occurs if you try to set a media for a cdrom drive while editing a virtual machine
I have the same problem: In VM settings on Mass Storage tab when browsing for a HDD (SATA in my case) only the folder containing ISO files is shown, when browsing for ISO files to attach to an optical drive only virtual disks are shown.
Screenshot 1 (Hard Disk selection):

Screenshot 2 (Optical disk selection):

Config.php
System:
Arch Linux 64-bit 4.2.5 (up-to-date)
VirtualBox 5.0.10_OSE
phpVirtualBox 5.0-3
I see now. I missed that this is when using the browserRestrictFolders setting. I think that is where the bug is.
@slaecker are you using the restrict folders setting in config.php as well?
Sorry for being late.
In the Config.php linked above I have:
But as I saw you already fixed the issue. I'll try the new release at weekend.
Last edit: slaecker 2015-12-07
Fixed in latest release.