chdir($currentPath)) { die("Failed to navigate to the selected folder: $currentPath"); } $items = $sftp->nlist(); $imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg']; $videoExtensions = ['mp4', 'webm', 'ogg', 'mov', 'avi', 'mkv']; $audioExtensions = ['mp3', 'wav', 'm4a', 'flac', 'aac']; $editableExtensions = ['txt', 'html', 'css', 'js', 'php', 'xml', 'json', 'md', 'csv', 'log', 'ini', 'conf', 'sh', 'bat', 'py', 'rb', 'java', 'c', 'cpp', 'h', 'hpp']; $archiveExtensions = ['zip', 'rar', 'tar', 'gz', '7z', 'bz2', 'xz', 'tar.gz', 'tar.bz2', 'tar.xz']; ?> Files · USB RAID '../../', 'active' => 'files', 'section' => 'Files', 'eyebrow' => 'Your remote storage', 'title' => 'All files', 'description' => 'Everything in its place. Browse, manage and transfer your files.', 'connected' => true, ]); ?>
Drop files or folders hereOr use the upload buttons to browse your device
is_dir($item)) { $directories[] = $item; } else { $files[] = $item; } } // Sort directories and files alphabetically sort($directories, SORT_STRING | SORT_FLAG_CASE); sort($files, SORT_STRING | SORT_FLAG_CASE); if ($currentPath !== $defaultPath) : ?>
Name Size Actions
↑ Parent folder
—
Image Video Audio PDF stat(rtrim($currentPath, '/') . '/' . $file)['size']) ?>
Folders first · A–Z