File Explorer in JavaScript | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (172).NET Core  (29).NET MAUI  (192)Angular  (107)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (209)BoldSign  (12)DocIO  (24)Essential JS 2  (106)Essential Studio  (200)File Formats  (63)Flutter  (131)JavaScript  (219)Microsoft  (118)PDF  (80)Python  (1)React  (98)Streamlit  (1)Succinctly series  (131)Syncfusion  (882)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (49)Windows Forms  (61)WinUI  (68)WPF  (157)Xamarin  (161)XlsIO  (35)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (146)Chart  (125)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (62)Development  (613)Doc  (7)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (37)Extensions  (22)File Manager  (6)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (488)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (41)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (368)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (30)Visual Studio Code  (17)Web  (577)What's new  (313)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
thumbnail

File Explorer in JavaScript

The file explorer control for JavaScript provides a Windows Explorer-like interface within a web application, allowing end-users to browse, upload, and download files. Folder structure can be changed by renaming, moving, or deleting folders and files, and the control’s layout and folder management can be customized.

This blog will explain the features available in the file explorer component.

Layout types

The file explorer control supports two types of layouts to view files:

  • Tile view
  • Grid view

File Explorer Layout with Tile view

File explorer layout with Tile / Thumbnail view

File Explorer Layout with Detailed Grid View

File explorer layout with detailed Grid view

Image preview

You can preview an image by double-clicking it, which opens the image in a dialog window. The previewed image can then be zoomed by resizing the dialog box.

File Explorer built-in image preview option

File explorer built-in image preview option

Custom layout

The layout of the file explorer panel can be customized.

File Explorer with Customized Layout

File explorer with customized layout

Custom tool support

In the file explorer toolbar, you can create custom tools with customized actions. For example, here the Help tool has been created as a custom tool in the toolbar.

File Explorer with Custom Tool

File explorer with Custom tool option

Sorting support

In the details view or the grid view, files can be sorted by desired fields.

Sorting the files in File Explorer

Sorting the files with ascending / descending order

Virtualization

File explorer has a virtual scrolling option that will load files on demand while you scroll the content. This will improve the performance when the file system has a large number of files in its storage.

File Explorer with Virtual Scrolling

Virtual scrolling with large number of files

File access control

The file explorer can be used in your secured file system by authorizing the access permissions to specific people or groups for specific files and folders. By defining a set of access rules for your files and folders, you can authorize people to read, write, delete, and upload files.

These access rules are validated on the server side, so it will be more secure, and unauthorized people don’t have access.

Folders with Access Permission Restricted

In the previous screenshot, access permission is provided to the documentation user so only the documents folder can be accessed and the remaining folders are restricted.

Shared folder support

The file explorer can also manage the files and folders available from locally shared machine. This is useful when you are accessing the files through your intranet environment.

Accessing Shared Folder from File Explorer

Accessing the shared location

Other storages support

Other than the default file systems, the file explorer can be used as a UI for online file systems and other storages. Currently, file explorer supports these storages to explore:

  1. Azure storage
  2. SQL database

Azure storage support

Azure storage is a cloud-based storage provided by Microsoft for storing data objects, file system services, and so on. The default file explorer was designed to work with general file systems, so by extending the functionalities, we can perform Azure storage-related operations.

The Azure-related operations are already handled and explained in the following knowledge base, where you can get the example sample with ASP.NET Core and MVC platforms.

https://www.syncfusion.com/kb/8355/how-to-access-the-azure-storage-files-in-fileexplorer

You can further extend the sample by substituting your Azure storage details on it.

SQL database support

In some situations, the file system might be served from the SQL database. The file access operation will also be different for SQL database. This can also be handled by extending the file operations.

This was already done and explained in the following documentation section with the example sample:

https://help.syncfusion.com/aspnetmvc/fileexplorer/how-to#managing-files-that-is-available-in-sql-database

You can further extend the sample by substituting your SQL database-related settings on it.

Summary

Overall, the file explorer component was designed with all file operations, also it can be further extendable based on your application point of view or to support other file storage.

If you would like to try the file explorer component, you can download the free trial. You can also check our sample browser and documentation for detailed explanations to proceed further.

If you have any questions or need any clarifications, please let us know in the comments section below. You can also contact us through our Support forum or Direct-Trac. We are always happy to assist you!

If you like this blog post, we think you’ll also like the following free resources:

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed
Scroll To Top