File Rack

Описание

Frontend File Explorer turns WordPress into a modern, Windows Explorer–style file manager. Manage all your documents, media, and downloads from a clean admin dashboard — then embed a beautiful, mobile-friendly file explorer on any page with one shortcode.

No bloat. No page builder required. Works with every theme.

Why site owners choose Frontend File Explorer:

  • Explorer-style interface: Familiar breadcrumbs, toolbar, sorting, and pagination make organizing hundreds of files feel effortless.
  • Frontend file sharing: Embed a read-only file explorer on any page so visitors can browse folders and download files in one click.
  • Drag-and-drop uploads: Upload multiple files at once, or import existing files straight from your Media Library.
  • Folder management: Create unlimited nested folders, exactly like on your desktop.
  • Rename, move & copy: Reorganize files and folders with bulk selection and conflict-safe transfers — choose Skip, Replace, or Keep both when names collide.
  • ZIP downloads: Download an entire folder as a ZIP archive with a single click.
  • Copy direct links: Grab a shareable URL for any file instantly.
  • Capability-protected management: Uploading, renaming, moving, and deleting require the WordPress upload_files capability. Visitors can browse and download shared files.
  • Dedicated storage: Files live in a dedicated wp-content/uploads/downloads directory, separate from your Media Library.
  • Fast AJAX navigation: Folder browsing without page reloads.
  • Translation ready: Fully localized with the frontend-file-explorer text domain.

This plugin bundles Material Icons (Google), licensed under the Apache License 2.0. Apache 2.0 is compatible with GPLv3 and later. Full license text and attribution are in THIRD-PARTY-NOTICES.txt.

Perfect for:

  • Course creators selling downloadable materials
  • Agencies delivering files to clients
  • Businesses publishing a document library, resource hub, brochures, or documentation
  • Anyone who wants a clean, branded downloads page or file-sharing hub

How to use the Explorer:

  • Admin Interface:
    Navigate to File Upload in your WordPress admin sidebar. From this dedicated dashboard you can create nested folders, upload bulk files (multi-select and drag-and-drop), import existing Media Library assets, rename items, move or copy files and folders in bulk, delete items, and download entire directories as ZIP archives.

  • Frontend Shortcode:
    Embed the user-facing explorer interface on any Page, Post, or Custom Post Type using the following shortcode setup:

    [frontend_file_explorer]
    

    (Renders the explorer starting at the root storage directory)

    Advanced Shortcode Usage:
    You can explicitly define the starting folder path relative to the root uploads/downloads directory by using the folder attribute:

    [frontend_file_explorer folder="/course-materials"]
    [frontend_file_explorer folder="/clients/acme-corp"]
    
  • Block Editor:
    Prefer blocks over shortcodes? In the block editor, add the File Explorer block (search «File Explorer» in the block inserter). Set the starting folder in the block sidebar — it renders through the same engine as the shortcode, so the markup and behavior are identical.

    • Frontend Capabilities: Visitors can browse folders, download files, and copy direct sharing links.
    • Security: Mutating actions (upload, folder creation, rename, move, copy, deletion) are strictly hidden and blocked from public visitors — they are only accessible to logged-in users with the WordPress upload_files capability.

External Services

This plugin may connect to third-party cloud storage services only when you explicitly configure and enable the Cloud Storage feature (Pro plan). No external connections are made on a default installation.

When configured, the plugin communicates directly with whichever storage provider you choose:

  • Amazon S3 — https://aws.amazon.com/s3/ — Terms: https://aws.amazon.com/service-terms/
  • Cloudflare R2 — https://www.cloudflare.com/developer-platform/r2/ — Terms: https://www.cloudflare.com/terms/
  • DigitalOcean Spaces — https://www.digitalocean.com/products/spaces/ — Terms: https://www.digitalocean.com/legal/terms-of-service-agreement/

Data sent: the file being uploaded (via a presigned PUT URL generated server-side), and listing/delete requests for files you manage. No user tracking or analytics data is ever sent.

Support Development

If you find this plugin useful and want to support its continued development, consider buying me a coffee!

Your support helps keep the plugin maintained, secure, and free for everyone.

Скриншоты

Блоки

Этот плагин предоставляет 1 блок.

  • File Explorer

Установка

Installation from within WordPress

  1. Visit Plugins > Add New.
  2. Search for Frontend File Explorer.
  3. Install and activate the plugin.
  4. On activation, the plugin creates the wp-content/uploads/downloads directory — start uploading right away.
  5. Add [frontend_file_explorer] to any page to publish your file explorer.

Manual installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Visit Plugins.
  3. Activate the Frontend File Explorer plugin.

Часто задаваемые вопросы

How do I embed the file explorer on any WordPress page or post?

Add [frontend_file_explorer] to any page or post and publish — that’s it. Use the folder attribute to start inside a specific directory: [frontend_file_explorer folder="/course-materials"]. In the block editor, search for the File Explorer block and set the starting folder in the block sidebar — it uses the same rendering engine as the shortcode.

Is it possible to restrict file access to logged-in users or specific user roles?

Public visitors can browse folders, download files, and copy direct links. Mutating actions — uploading, creating folders, renaming, moving, copying, and deleting — are gated behind the WordPress upload_files capability (Administrators and Editors by default). The Pro plan adds protected/private folders, letting you restrict access per-folder by password, login requirement, or user role.

How does path traversal and file upload security work?

Every path is canonicalized and validated against the plugin’s base directory before any filesystem operation — a path that resolves outside wp-content/uploads/downloads/ is rejected. Nonces are verified on every AJAX endpoint. Server-executable file types (.php, .phtml, etc.) are blocked on every write path: upload, rename, copy, and move — so an allowed extension can never be renamed into an executable one.

Can users download entire folders as a single ZIP archive?

Yes. Any folder in the explorer shows a one-click «Download as ZIP» action that streams the complete directory as a ZIP archive on the fly — no temporary files are left on the server.

Which file types are supported for frontend preview and uploads?

The inline preview modal supports images, PDFs, videos, and audio files — they open in-place without leaving the page. Uploads accept images, PDFs, Office documents, and archives by default; server-executable types are always blocked. The allowed list is adjustable via the frontend_file_explorer_allowed_file_types option.

Is the file explorer mobile-responsive?

Yes. The explorer is fully responsive — breadcrumb navigation, folder tree sidebar, toolbar, and file list all adapt to phone and tablet widths. Visitors can also switch between table and grid/thumbnail view using the view-mode toggle.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«File Rack» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «File Rack» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.0.4

  • Fix: Updated «Tested up to» to WordPress 7.1.

2.0.3

  • New (Pro): Download logs now capture direct frontend downloads — previously only share-link downloads were logged. A fire-and-forget AJAX call records every file download in {prefix}ffe_download_logs without delaying the download for the visitor.
  • Fix: Eight UI themes (aurora, sunset, ocean, dusk, forest + existing light/dark/mono) can all be saved from the Settings page — the previous allowed-list only accepted the original three.
  • Fix: Admin list view now displays correctly with proper grid overrides and thumbnail previews for image files.
  • Fix: Preview modal is appended inside the explorer container so it correctly inherits theme CSS variables.

2.0.0

  • New: Three UI themes — Light, Dark, and Mono — switchable per-user via colour swatch buttons. Theme choice persists via a WordPress option.
  • New: Finder/Explorer-style sidebar with collapsible folder tree and media-type filter buttons (All / Images / Documents / Video / Audio / Archives) — available in both the admin and the frontend shortcode.
  • New: Inline file preview modal using the native <dialog> element — images, PDFs, videos, and audio files open in-place without leaving the page.
  • New: Drag-to-upload drop zone in the admin explorer. Drag files anywhere over the file list to trigger an upload; a drop counter handles nested-element drag events correctly.
  • New (Pro): Protected/private folders — restrict access to a folder by password, login requirement, or user role. Password state is remembered via a short-lived WordPress transient (no PHP sessions).
  • New (Pro): Recursive folder search — walks subdirectories server-side, security-validated to stay within the downloads directory.
  • New (Pro): Download logs — every file download is recorded in a {prefix}ffe_download_logs database table. View and CSV-export logs from the new Download Logs admin page.
  • New (Pro): Share links with expiry — generate a one-time or time-limited shareable URL for any file; links are stored in {prefix}ffe_share_links and checked on access.
  • New (Pro): Custom folder icons and colours — set a colour and Material Icon name per folder via the admin; metadata stored in a WordPress option.
  • New (Pro): Cloud storage — connect AWS S3, Cloudflare R2, or DigitalOcean Spaces. Files upload directly from the browser via presigned PUT URLs; the secret key is stored encrypted using WordPress salts.
  • New: Settings admin page — configure allowed file types, default theme, and (Pro) protected folder rules from one place.
  • Changed: Plugin display name updated to File Rack.
  • Internal: theme, isPro, and upgradeUrl are now passed via wp_localize_script for both admin and frontend scripts.

1.3.1

  • Changed: Plugin display name updated to «File Rack».

1.3.0

  • Feature: «File Explorer» block for the block editor. Add the explorer to any page without pasting a shortcode, with a starting-folder setting in the block sidebar. Renders through the same engine as the shortcode — identical markup and behavior.

1.2.0

  • Feature: Search box in the admin explorer and the frontend explorer that filters the current folder by file or folder name, instantly and privately in the browser. Case-insensitive, resets when you navigate, and shows a clear «no matches» state.
  • Fixed: Folder and file names are now always returned as text — folders with purely numeric names (such as «2024») could break JavaScript that expected text.

1.1.1

  • Security: ZIP downloads now use unpredictable temp-file names (replacing a time-seeded name that was guessable on shared hosting) and clean up the temp file on every exit path, including errors mid-build.

1.1.0

  • Compliance: Author credits are now opt-in — off by default on new and existing installs, with a nofollow link when enabled, per WordPress.org plugin guideline 10.
  • Security: Server-executable file types (such as .php) are always blocked on every write path — upload, rename, copy, and move — regardless of configuration. An allowed file type can no longer be renamed into an executable one.
  • Security: Hardened ZIP downloads (memory limits, temp-file cleanup) and path validation (null-byte rejection, canonical-path checks on all handlers).
  • Security: Backfills directory-listing protection (.htaccess + index.php) on installs created before it existed.
  • Performance: Plugin scripts now load with a defer strategy on WordPress 6.3 and later. On WordPress 5.6 to 6.2 the scripts still load in the footer, but without deferring.
  • Privacy: The Buy Me a Coffee button image is bundled locally — no third-party CDN requests from your admin.

1.0.11

  • Feature: Rename files and folders directly from the admin explorer.
  • Feature: Bulk select items with checkboxes and a select-all control.
  • Feature: Move or copy files and folders to any destination via a folder picker with breadcrumb navigation.
  • Feature: Per-item conflict resolution (Skip, Replace, Keep both) when the destination already contains an item with the same name.

1.0.8

  • Feature: Added «Hide author credits» toggle (Settings panel) — removes credits from DOM when checked, dofollow attribution when visible.
  • Feature: Added Buy Me a Coffee support button on the admin page, Plugins screen, readme.txt, and README.md.
  • UI: Added a settings card below the shortcode panel with checkbox and support links.
  • Internal: Added plugin_row_meta filter for plugin action links, save_credits_preference AJAX endpoint, and frontend_file_explorer_hide_credits option.

1.0.7

  • Feature: Added server-side sorting for folder/file listings (Name, Date Modified, Size, Type, asc/desc).
  • Feature: Admin can set a default sort order that persists for frontend visitors.
  • Feature: Added shortcode reference panel with copyable code snippets below the admin explorer.
  • Feature: Frontend explorer now respects the admin-configured default sort order.
  • UI: Modernized shortcode & tips card with dark code blocks, hover effects, tooltip copy feedback.

1.0.6

  • UI: Redesigned admin interface with modern styling, CSS custom properties, card-based grid, smoother transitions, and responsive layouts.
  • UI: Replaced browser alerts with styled toast notifications for success/error messages.
  • UI: Added file-type color coding for PDFs, Word docs, Excel files, and archives.
  • UI: Improved modal design with backdrop blur, scale animation, and Escape-key dismissal.
  • Fix: Fixed broken CSS asset paths preventing Material Icons and all styles from loading.
  • Fix: Fixed Material Icons font URL resolution in bundled stylesheet.
  • Fix: Fixed duplicate element ID causing toolbar button text to disappear on upload modal open.
  • Fix: Fixed infinite recursion crash when clicking upload dropzone.
  • Fix: Fixed «Upload Files» button incorrectly opening Media Library instead of the upload modal.
  • Fix: Fixed ZIP download failing with «No path specified» (GET vs POST mismatch).
  • Fix: Fixed trailing comma syntax error in admin JavaScript class method.

1.0.5

  • Security: Added comprehensive array structure validation for $_FILES superglobal before accessing elements.
  • Security: Moved is_uploaded_file() validation to immediately after accessing tmp_name for improved security.
  • Security: Removed PHPCS ignore comment and implemented proper sanitization for file upload handling.
  • Standards: Replaced $_REQUEST with $_POST for AJAX POST requests per WordPress coding standards.
  • Standards: Replaced PHP basename() with WordPress wp_basename() for i18n compatibility with multibyte characters.

1.0.4

  • Security: Sanitized and validated all $_FILES upload fields individually (name, type, tmp_name, error, size).
  • Security: Added is_uploaded_file() guard against path injection on file uploads.
  • Standards: Fixed unordered placeholders in translatable strings per WordPress i18n guidelines.

1.0.3

  • Security: Fixed unauthenticated file downloads, arbitrary PHP uploads, XSS via eval(), and server path disclosure.
  • Standards: Migrated all filesystem operations to WP_Filesystem API, bundled Material Icons locally, added proper nonce verification and capability checks to all AJAX endpoints.
  • Standards: Renamed classes to use WordPress underscore convention (Frontend_File_Explorer, Frontend_File_Explorer_Ajax).
  • Standards: Removed discouraged load_plugin_textdomain() call, added proper prefixing to all handles and identifiers.

1.0.2

  • Fix: Resolved a critical bug causing the frontend explorer to execute filesystem deletion logic instead of listing directory contents.
  • Fix: Repaired the «Download as ZIP» mechanism to eliminate ERR_INVALID_RESPONSE failures by safely building ZipArchive temp files and explicitly managing PHP output buffers and Safari download headers.
  • Feature: Fully integrated the missing backend endpoints required for the UI, enabling seamless frontend and backend folder creation, file uploads, and Media Library imports.
  • Security & Standards: Swept codebase for strict WordPress PHPCS warnings. Corrected all variable unslashing, resolved missing nonce verification checks, migrated deprecated filesystem functions to WP_Filesystem, and reinforced esc_html__ translation domain strings and translators comments.

1.0.1

  • Rename plugin to «Frontend File Explorer»
  • Align text domain and translation loading with slug frontend-file-explorer
  • Improve README and readme.txt descriptions and screenshots