File Rack

By Shafat Mahmud Khan

70+ active installationsVersion 2.3.0

File manager for WordPress with an explorer-style admin dashboard, frontend file browser, drag-and-drop uploads, ZIP downloads, cloud storage, protect …

Description

File Rack — the modern file manager for WordPress. Upload, organize, and share documents from an explorer-style dashboard — then publish a beautiful, mobile-friendly file browser on any page with one shortcode or block.

🎬 Watch the demo:

No page builder required. Works with every theme.

🆓 Free — admin dashboard, drag-and-drop uploads, folder ZIP downloads, frontend file browser, preview modal, 8 themes, 13 icon packs
⭐ Pro — cloud storage (S3/R2/Spaces), protected folders & file access, share links with limits and passwords, download logs

Read the Documentation →

🆓 Free Features

🆓 Explorer-style admin dashboard

  • Familiar breadcrumbs, toolbar, sorting, and pagination — just like a desktop file manager
  • Grid and list view with thumbnail previews for images
  • Fast AJAX navigation — browse folders without page reloads
  • Multi-select with bulk actions (move, copy, delete, download)
  • Drag-and-drop file uploads and Media Library import
  • Conflict-safe transfers — choose Skip, Replace, or Keep both when names collide

🆓 Folder management

  • Create unlimited nested folders
  • Rename, move, and copy folders with conflict resolution
  • Download any folder as a ZIP archive in one click
  • Delete files and folders individually or in bulk

🆓 Frontend file browser

  • Embed a read-only file explorer on any page with [frontend_file_explorer]
  • Visitors can browse folders, download files, and copy direct sharing links
  • Breadcrumb navigation, media-type sidebar filters (Images, Docs, Video, Audio, Archives)
  • Inline file preview modal — images, PDFs, videos, and audio open in-place
  • Fully responsive — adapts to phone, tablet, and desktop widths
  • Folder attribute for scoped embeds: [frontend_file_explorer folder="/clients/acme"]
  • Block editor block — drag the File Explorer block into any post or page

🆓 Themes, icon packs and UI

  • 8 built-in themes: Light, Dark, Mono, Aurora, Sunset, Ocean, Dusk, Forest
  • 13 built-in icon packs, switchable right beside the theme switcher: Material, Lucide, Feather, Heroicons (Outline & Solid), Tabler (Outline & Filled), and Phosphor in six weights (Thin, Light, Regular, Bold, Fill, Duotone)
  • Icons automatically follow the active theme colors — folders and file-type accents included
  • Extensible: register your own icon packs via the ffe_icon_packs filter
  • Theme and icon-pack preferences persist per-user via WordPress options
  • Compatible with any WordPress theme — no style conflicts

🆓 Security and storage

  • Files live in a dedicated wp-content/uploads/downloads directory, separate from your Media Library
  • Every path is canonicalized and validated — no path traversal possible
  • Server-executable file types (.php, .phtml, etc.) are blocked on all write paths
  • All AJAX endpoints are nonce-verified and capability-gated
  • Upload, rename, and delete require the WordPress upload_files capability
  • Translation ready — fully localized with the frontend-file-explorer text domain

⭐ Pro Features (Upgrade)

⭐ Cloud storage (S3-compatible)

  • Connect Amazon S3, Cloudflare R2, or DigitalOcean Spaces with your own credentials
  • Upload files directly to the cloud from the admin dashboard
  • Browse, preview, and download cloud files alongside local files
  • Rename cloud files (CopyObject + DeleteObject with proper AWS Signature V4 signing)
  • Delete cloud files directly from the admin file manager
  • Public URL support for instant CDN-delivered file access

⭐ Protected folders

  • Password-protect any folder — visitors must enter a password to access its contents
  • Restrict folders by login requirement or user role
  • Per-folder protection, fully nested — subfolders inherit parent protection

⭐ Recursive search

  • Full-text search across all nested folders at once
  • Results include the full folder path so you know exactly where each file lives

⭐ Download logs

  • Every file download is recorded in a dedicated database table
  • Logs capture the file, visitor IP, timestamp, and referrer
  • Works for both direct frontend downloads and share-link downloads

⭐ Share links with expiry, limits & passwords

  • Generate a unique share URL for any file — no account needed for recipients
  • Optional expiry (1 hour to 30 days), optional download limit (one-time links included), and optional per-link password
  • See usage per link — downloads used, last download time — and revoke any link instantly
  • Works for logged-out visitors without exposing your storage paths

⭐ Protected file access

  • Block direct file URLs — every download is served through the plugin
  • Folder rules (password / login / role) are enforced on the file itself, not just the folder view
  • Share links become true access grants: revoking or expiring a link actually cuts off access
  • Apache/LiteSpeed: configured automatically; nginx: one config snippet (shown in Settings)

⭐ Custom folder appearance

  • Set a custom icon and color for any folder
  • Instantly distinguish project folders, client folders, and archive folders at a glance

🎯 Perfect for

  • Course creators sharing downloadable materials with students
  • Agencies delivering files and assets to clients
  • Businesses publishing a document library, resource hub, or brochures
  • Anyone who wants a clean, branded downloads page on their WordPress site

🚀 How to get started

Admin interface: Go to File Upload in your WordPress admin sidebar. Create folders, upload files (drag-and-drop or multi-select), and manage everything from one dashboard.

Frontend shortcode:

[frontend_file_explorer]

Add the shortcode to any page to publish your file browser. Use the folder attribute to start inside a specific directory:

[frontend_file_explorer folder="/course-materials"]
[frontend_file_explorer folder="/clients/acme-corp"]

Block editor: Search for the File Explorer block in the block inserter and set the starting folder in the block sidebar.

🔒 Security

Mutating actions (upload, folder creation, rename, move, copy, delete) are strictly hidden and blocked from public visitors — they are only accessible to logged-in users with the WordPress upload_files capability. Path traversal protection, nonce verification, and executable file type blocking are enforced on every write path.

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.

Installation

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.

FAQ

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.

Screenshots

Changelog

2.3.0

  • New: Icon packs — 13 built-in icon sets in the file manager toolbar: Material, Lucide, Feather, Heroicons (Outline & Solid), Tabler (Outline & Filled) and Phosphor (Thin, Light, Regular, Bold, Fill, Duotone). Switch anytime from the sidebar, same one-click flow as themes.
  • New: Icon packs are extensible — register additional packs via the ffe_icon_packs filter.
  • New: Icons now follow the active theme colors, including folder and file-type accents.
  • Fix: Frontend file-browser sidebar rows stay left-aligned on themes that center button content.
  • Fix: The wp-admin footer no longer overlaps the dashboard on shorter screens.
  • Fix: Toolbar and sidebar icons update correctly when toggled at runtime (sidebar collapse, folder expand, copy confirmation).

2.2.0

  • Fix: Copy share link button now copies the correct URL (was copying “undefined”).
  • Fix: Revoke share link button now properly removes the link from the list.
  • New: Share link modal redesigned with card-style layout — file header with type icon, grid fields, password visibility toggle, link cards with colored status chips (Active/Expiring/Expired/Used up), active links counter, empty state.
  • New: Share links support download limits (including true one-time links), optional per-link passwords with standalone recipient password page, and per-link usage stats.
  • New: Protected file access — when enabled, blocks direct file URLs and serves all downloads through the plugin endpoint where folder rules and share-link limits are enforced. Protected folders are now hidden from public frontend listings (admins still see everything).
  • Fix: Share link copy/revoke buttons fixed (were using wrong selector).
  • UI: Share modal redesigned with file header (type icon + extension), grid fields, password visibility toggle, custom select arrows, full-width Create button, card-style link rows with status chips (Active/Expiring/Expired/Used up), 32×32 icon action buttons with hover variants (Open=primary, Copy=standard, Revoke=danger).
  • UI: Share modal password field gets visibility toggle (eye/eye-off).
  • UI: Active links counter in header, empty state with illustration.
  • UI: Light/ElementsKit-style assets — new banner (1544×500 + 772×250), 8 light-style screenshots.
  • Docs: readme.txt updated with correct “Upgrade to Pro” URL and new “Full documentation” link.

2.1.0

  • New (Pro): Cloud file rename — renames objects in R2/S3/DO Spaces via CopyObject + DeleteObject with proper AWS Signature V4 signing.
  • New (Pro): Cloud file delete — delete button now works on cloud files in the admin file manager.
  • Fix: Preview modal floating info bar no longer persists after closing the preview dialog.
  • Fix: Collapsed sidebar type filter labels now hide correctly, showing icons only.

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