File Manager Advanced Shortcode WordPress

PHP File Manager
January 10, 2021

$12.00 ( Lifetime Updates )

Shortcode for file manager advanced, you can use file manager for your front end securely. Edit, Delete, upload, delete, download, zip, copy etc multiple operations. You can access files inside and outside wordpress root directory on your website. (Click here for demo)

SKU: filemanager_shortcode Category: Tag:

Apply coupon code NEW20 on cart page to get flat 20% off.

(Click here to get unlimited licenses with lifetime updates.)

File Manager Advanced Shortcode allows you to insert file manager in your pages. You can control file operations of the file manager and you can allow you users to download and upload files. The best feature is the users have personal folders. The shortcode is for both logged in as well as non logged in users, just use parameter login=”yes” or login=”no”, in shortcode.

Shortcode – Logged in Users:

[file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content/uploads" hide="plugins" operations="mkdir,mkfile,rename,duplicate,paste,ban,archive,extract,copy,cut,edit,rm,download,upload,resize,search,info,help,empty" block_users="1,5" view="grid" theme="light" lang ="en"]

Shortcode – Non Logged in Users:

[file_manager_advanced login="no" path="wp-content/uploads" hide="plugins" operations="mkdir,mkfile,rename,duplicate,paste,ban,archive,extract,copy,cut,edit,rm,download,upload,resize,search,info,help,empty" view="grid" theme="light" lang ="en"]

Advanced Shortcode – User Role Conditions

[fma_user_role role="subscriber,editor"]
[file_manager_advanced login="yes" roles="subscriber,editor" path="wp-content" hide="plugins" operations="upload" view="list" theme="light" lang ="en"]
[/fma_user_role]
[fma_user_role role="administrator"]
[file_manager_advanced login="yes" roles="administrator" path="wp-content/plugins" operations="upload" view="list" theme="light" lang ="en"]
[/fma_user_role]

And so on multiple conditions…

Features:

  • Personal Folder: Users have their own personal folders.
  • Different Folders: Different folders for different user roles.
  • File Manager Access for Logged in Users: Logged in users can access and manage files on your website front end.
  • File Manager Access for Non Logged in Users: Non Logged in users or visitors can access and manage files on your website front end.
  • User Role Restrictions: You can restrict any user role to access file manager on your website front end.
  • Users Restrictions: You can restrict or block any user to access file manager on your website front end.
  • Private Folder Path: You can set private folder path where users can access files in shortcode.
  • Hide files or folders: You can hide folders or file from private file path for users in shortcode.
  • Theme: You can set theme for file manager in shortcode.
  • Language: You can set any country language for file manager in shortcode.
  • Control User Operations: You can control users operations in Shortcode. You can set operations for your users (upload,download etc).
  • View: Grid and list view for file manager in shortcode.
  • Gutenberg Compatible
  • Editable Root Directory Path: You can edit root directory path.
  • Shortcodes: Shortcodes for logged in and non logged in users with multiple attributes and features (allows users and users role access) are available for frontend (pro)
  • Files Access: Access files inside and outside wordpress root directory
  • User Operations: Upload, Download and Delete operations
  • File Operations: All operations with files and folders (copy, move, upload, create folder/file, rename, archive, extract, edit, etc.)
  • PDF Preview: PDF Preview feature available
  • FTP Support: Alternative to FTP
  • Hide Files Real Path: Feature to hide the files real and actual path.
  • Trash: Move to Trash Feature
  • Themes: Light and Elegant client UI
  • Drag and drop: Drag & Drop file upload support
  • Icon View: List and Icons view available
  • Archives: Archives create/extract (zip, rar, 7z, tar, gzip, bzip2)
  • Image Edit: Image and File Edit Support
  • Preview: Quicklook, preview for common file types
  • Directory Size: Calculate directory sizes
  • Video and Audio: Video and audio preview/play
  • File Search: Support file search and sort
  • High Performance: High performance server backend
  • Local File System: Uses local file system no need of database
  • Keyboard shortcuts: Keyboard shortcuts available
  • Multi Selection: Multiple file/folder selection
  • Move Files: Move/Copy files with Drag & Drop
  • Toolbar: Rich context menu and toolbar
  • Thumbnails: Thumbnails for image files
  • Auto resize: Auto resize on file upload.
  • UTF-8: UTF-8 Normalizer of file-name and file-path etc.
  • Sanitizer: Sanitizer of file-name and file-path etc.
  • Folder upload: Folder upload (supports on google chrome/Chromium)
  • Chunked file upload: Chunked file upload
  • Upload: Upload directly to the folder
  • Creating Archive: Creating the archive by specifying the file name
  • Browsing History: File browsing history
  • Responsive: Works on tablet and phone

Shortcode Parameters:

Parameter Value Description Usage
login yes/no yes -> For Logged In users, no -> For Non Logged In users [file_manager_advanced login="yes"] – logged in users

[file_manager_advanced login="no"] – non logged in users or visitors

You can use given parameters for both shortcodes.

roles all / administrator, author all -> Allow all user roles , use: roles=”all” [file_manager_advanced login="yes" roles="author,editor,administrator"]
path

(1)Any Valid Folder Path. Eg. wp-content/uploads

(2) % – Root Directory

(3) $ – Will generate logged in users personal folder of their username (unique) under location “wp-content/uploads/file-manager-advanced/users”, use path=”$” in shortcode.

(4) wp-content/uploads/file-manager-advanced/users – you can view and access all user’s personal folders under this path.

Any valid folder path or suggested symbols like % and $. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content/uploads"]

Use given shortcode to auto assign their autogenerated folders to users. [file_manager_advanced login="yes" roles="author,editor,administrator" path="$"]
path_type inside/outside use “outside”, if you want to use any directory (Folder) outside wordpress root directory, default: inside [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content/uploads" path_type="inside"]

Use “url” parameter with outside as url = “https://anyoutsidewebsite.com”
hide plugins will hide plugins folder [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins"]
operations all / mkdir, mkfile, rename, duplicate, paste, ban, archive, extract, copy, cut, edit, rm, download, upload, resize, search, info, help, empty all -> allow all operations, you can select according to your use [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download"]
block_users Any User ID like 1,5 Restrict any user to access file manager by assigning User’s ID, Like block_users=”1,5″. Here 1 and 5 are the user’s ids. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5"]
view list / grid The option ‘list’ will return the file manager files layout in list format and the option ‘grid’ will return the file manager files layout in grid format. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid"]
theme light / dark / grey / windows10 / bootstrap With this option you can assign any theme to file manager to change file manager user experience (UX). [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light"]
lang en or any other language code. At the bottom of this page, there is a list of all languages with codes. You can copy the code and use like lang =”en”. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" lang ="en"]
dateformat M d, Y h:i A Files creation or modification date format. You can change this formar as per your requirement. Example: dateformat : ‘M d, Y h:i A’ will return Mar 13, 2012 05:27 PM [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A"]
hide_path yes/no The option ‘yes’ will hide the real file path on preview. Default: no [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no"]
enable_trash yes/no The option ‘yes’ will display trash in file manager on front shortcode page and all the deleted files will go to the trash folder. You can restore the deleted files from Trash. Default: no [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no"]
height 500 This option is used to adjust in file manager height on front shortcode page. Default: blank (auto) [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height=""]
width 800 This option is used to adjust in file manager width on front shortcode page. Default: blank (auto) [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width=""]
ui With this option to can control the UI of the file manager. There are some options given.
1) files
2) toolbar
3) tree
4) path
5) stat
1) files -> This option will display only files (no toolbar, no left side bar) (use ui=”files” in shortcode)
2) toolbar,tree,path,stat -> These options will display whole file manager ui like toolbar etc. Use: ui=”toolbar,tree,path,stat”. Also you can remove any option from the list as per your requirements. Default: blank (all)
[file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat"]
allowed_upload 1) If you want to upload all file formats then use upload_allow=”all” option.
2) If you want to upload specific mime types like “image/png” then upload_allow= “image/vnd.adobe.photoshop,image/png”. You can add more mime type separated by comma(,). Click here for more mime types.
By using this option you can allow and restrict specific file mime types to upload. Default: all [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat" upload_allow= "image/vnd.adobe.photoshop,image/png"]
upload_max_size If you want to restrict users to upload heavy files then use upload_allow=”10M” option. Default: 0 (No Limit) Maximum upload file size. This size is per files. Can be set as number with unit like 10M, 500K, 1G. 0 means unlimited upload. By using this option you can restrict users to upload a specifix size file. [file_manager_advanced login="yes" roles="author,editor,administrator" path="wp-content" path_type="inside" hide="plugins" operations="mkdir,download" block_users="1,5" view="grid" theme="light" dateformat="M d, Y h:i A" hide_path="no" enable_trash="no" height="" width="" ui="toolbar,tree,path,stat" upload_allow= "image/vnd.adobe.photoshop,image/png" upload_max_size="2G"]

Shortcode inserted in Editor

Shortcode View on Website Pages

Buy now

Get 20% off on your every purchase. Use coupon code

X