d71009c908
- Reset $stream_files between loop iterations so files from a previous category no longer carry over to the next when its directory is missing - Guard scandir() return value before passing to count() to prevent TypeError on PHP 8+ when the directory does not exist - Show an error message when mkdir fails during upload (e.g. read-only filesystem due to systemd ProtectSystem)