DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • The Cypress Edge: Next-Level Testing Strategies for React Developers
  • How to Build Scalable Mobile Apps With React Native: A Step-by-Step Guide
  • Mastering React App Configuration With Webpack
  • Overcoming React Development Hurdles: A Guide for Developers

Trending

  • AI's Dilemma: When to Retrain and When to Unlearn?
  • From Zero to Production: Best Practices for Scaling LLMs in the Enterprise
  • Performing and Managing Incremental Backups Using pg_basebackup in PostgreSQL 17
  • MySQL to PostgreSQL Database Migration: A Practical Case Study
  1. DZone
  2. Coding
  3. JavaScript
  4. File Explorer in JavaScript

File Explorer in JavaScript

Everything you need to know about File Explorer in JavaScript.

By 
SumanKumar Gopalakrishnan user avatar
SumanKumar Gopalakrishnan
·
Sep. 04, 19 · Analysis
Likes (2)
Comment
Save
Tweet
Share
21.0K Views

Join the DZone community and get the full member experience.

Join For Free

vinyl-records-in-store

Organize JavaScript files for your users

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. The 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 a 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 RestrictedIn 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 a 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:

  • Azure storage.
  • SQL database.

Azure Storage Support

Azure storage is a cloud-based storage service 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.

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 the SQL database. This can also be handled by extending the file operations.

Summary

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

File system File Explorer JavaScript

Published at DZone with permission of SumanKumar Gopalakrishnan. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • The Cypress Edge: Next-Level Testing Strategies for React Developers
  • How to Build Scalable Mobile Apps With React Native: A Step-by-Step Guide
  • Mastering React App Configuration With Webpack
  • Overcoming React Development Hurdles: A Guide for Developers

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!