{"id":50344,"date":"2026-03-19T16:26:50","date_gmt":"2026-03-19T08:26:50","guid":{"rendered":"https:\/\/www.amagicsoft.com\/?p=50344"},"modified":"2026-05-09T15:32:55","modified_gmt":"2026-05-09T07:32:55","slug":"file-and-directory-entries-api","status":"publish","type":"post","link":"https:\/\/www.amagicsoft.com\/fr\/wiki\/file-and-directory-entries-api.html","title":{"rendered":"API pour les entr\u00e9es de fichiers et de r\u00e9pertoires : JavaScript Folder Upload &amp; Directory Traversal"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"50344\" class=\"elementor elementor-50344\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bazwxp1 dtec-docx-root dtec-post-50344 e-flex e-con-boxed e-con e-parent\" data-id=\"bazwxp1\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-v6nso74 elementor-widget elementor-widget-text-editor\" data-id=\"v6nso74\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"3247\" data-end=\"3532\">The File and Directory Entries API allows web applications to access files and folders selected by the user, especially through drag-and-drop or directory upload. It is useful when a web app needs to read a folder structure, scan nested files, or preserve relative paths during upload.<\/p><p data-start=\"3534\" data-end=\"3803\">In this guide, you will learn how the API works, how to use FileSystemEntry, FileSystemFileEntry, FileSystemDirectoryEntry, webkitdirectory, and webkitGetAsEntry(), how to traverse folders recursively, and when to choose alternatives such as the File System Access API.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-czwlu64 elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents\" data-id=\"czwlu64\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;],&quot;exclude_headings_by_selector&quot;:&quot;.faq-no-toc, h2:contains(Data Recovery Assessment)&quot;,&quot;marker_view&quot;:&quot;bullets&quot;,&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;icon&quot;:{&quot;value&quot;:&quot;fas fa-circle&quot;,&quot;library&quot;:&quot;fa-solid&quot;},&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<h4 class=\"elementor-toc__header-title\">\n\t\t\t\tTable of Contents\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__czwlu64\" aria-expanded=\"true\" aria-label=\"Open table of contents\"><i aria-hidden=\"true\" class=\"fas fa-chevron-down\"><\/i><\/div>\n\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__czwlu64\" aria-expanded=\"true\" aria-label=\"Close table of contents\"><i aria-hidden=\"true\" class=\"fas fa-chevron-up\"><\/i><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__czwlu64\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<i class=\"elementor-toc__spinner eicon-animation-spin eicon-loading\" aria-hidden=\"true\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-jfup0a4 elementor-widget elementor-widget-heading\" data-id=\"jfup0a4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What Is the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7l0njig elementor-widget elementor-widget-text-editor\" data-id=\"7l0njig\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div><div><h4 class=\"otl-heading\">Definition and Core Concept<\/h4><p class=\"otl-paragraph\">The entry api allows web applications to access files and directories selected by users. Unlike traditional methods, it supports hierarchical structures. Therefore, developers can process entire folders instead of individual files.<\/p><h4 class=\"otl-heading\">How It Works in Browsers<\/h4><p class=\"otl-paragraph\">In most cases, the API relies on:<\/p><ul><li class=\"otl-paragraph\"><code>FileSystemEntry<\/code><\/li><li class=\"otl-paragraph\"><code>FileSystemFileEntry<\/code><\/li><li class=\"otl-paragraph\"><code>FileSystemDirectoryEntry<\/code><\/li><\/ul><p class=\"otl-paragraph\">These objects help navigate file systems. In addition, they enable structured traversal directly in the browser.<\/p><h4 class=\"otl-heading\">Key Features and Capabilities<\/h4><ul><li class=\"otl-paragraph\">Supports folder uploads<\/li><li class=\"otl-paragraph\">Enables recursive directory reading<\/li><li class=\"otl-paragraph\">Works with drag-and-drop interactions<\/li><li class=\"otl-paragraph\">Provides access to file metadata<\/li><\/ul><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-tvxvi0g elementor-widget elementor-widget-heading\" data-id=\"tvxvi0g\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How the File and Directory Entries API Works in Practice<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-jatbrma elementor-widget elementor-widget-text-editor\" data-id=\"jatbrma\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>FileSystemEntry and DirectoryEntry Explained<\/h4>\n<p>The entry api uses two core entry types:<\/p>\n<ul><li>File entries for individual files<\/li><li>Directory entries for folders<\/li><\/ul>\n<p>Because directories can contain multiple levels, recursive traversal is required.<\/p>\n<h4>Reading Files and Traversing Directories<\/h4>\n<p>To process directories efficiently:<\/p>\n<ol><li>Access a directory entry<\/li><li>Create a reader<\/li><li>Iterate through entries<\/li><\/ol>\n<p>As a result, developers can scan complex file structures quickly.<\/p>\n<h4>Example Workflow<\/h4>\n<p>For example, a web uploader can:<\/p>\n<ul><li>Detect a dropped folder<\/li><li>Traverse subdirectories<\/li><li>Extract all files<\/li><\/ul>\n<p>Consequently, users save time and avoid manual selection.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7nhjydn elementor-widget elementor-widget-heading\" data-id=\"7nhjydn\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Common Use Cases of the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-06btbxv elementor-widget elementor-widget-text-editor\" data-id=\"06btbxv\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>Uploading Folder Structures<\/h4>\n<p>Many platforms require full directory uploads. With the entry api, the original structure stays intact.<\/p>\n<h4>Web-Based File Managers<\/h4>\n<p>Modern file managers simulate desktop environments. Therefore, they rely on directory traversal to function properly.<\/p>\n<h4>Data Processing Tools<\/h4>\n<p>Applications that process large datasets benefit greatly. For instance, batch file processing becomes more efficient.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-76lrp31 elementor-widget elementor-widget-heading\" data-id=\"76lrp31\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Limitations of the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-912vkqa elementor-widget elementor-widget-text-editor\" data-id=\"912vkqa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Browser Compatibility Issues<\/h3>\n<p>Although the entry api works well in Chromium-based browsers, support remains limited elsewhere. Therefore, testing across browsers is necessary.<\/p>\n<h3>Security Restrictions<\/h3>\n<p>Browsers restrict file access to protect users. As a result, applications must depend on user actions.<\/p>\n<h3>Non-Standard Status<\/h3>\n<p>Since the API is not fully standardized, future changes may occur. Consequently, developers should prepare alternatives.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6ma4yxu elementor-widget elementor-widget-heading\" data-id=\"6ma4yxu\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Alternatives to the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-rzrobcu elementor-widget elementor-widget-text-editor\" data-id=\"rzrobcu\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div><div><h3 class=\"otl-heading\">File System Access API<\/h3><p class=\"otl-paragraph\">This API provides more control and better standardization. Therefore, it is often considered a modern solution.<\/p><h3 class=\"otl-heading\">HTML Directory Upload<\/h3><p class=\"otl-paragraph\">Using <code>webkitdirectory<\/code> simplifies uploads. However, it lacks advanced features.<\/p><h3 class=\"otl-heading\">Third-Party Libraries<\/h3><p class=\"otl-paragraph\">Libraries reduce complexity. In addition, they improve compatibility across environments.<\/p><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ny4pbzu elementor-widget elementor-widget-heading\" data-id=\"ny4pbzu\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">File and Directory Entries API vs File System Access API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-x28hvo7 elementor-widget elementor-widget-text-editor\" data-id=\"x28hvo7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>Key Differences<\/h4>\n<table><tbody><tr><td><p><strong>Feature<\/strong><\/p><\/td><td><p><strong>File and Directory Entries API<\/strong><\/p><\/td><td><p><strong>File System Access API<\/strong><\/p><\/td><\/tr><tr><td><p>Standardization<\/p><\/td><td><p>Limited<\/p><\/td><td><p>Stronger<\/p><\/td><\/tr><tr><td><p>Browser Support<\/p><\/td><td><p>Partial<\/p><\/td><td><p>Expanding<\/p><\/td><\/tr><tr><td><p>Permissions<\/p><\/td><td><p>Basic<\/p><\/td><td><p>Advanced<\/p><\/td><\/tr><tr><td><p>Use Cases<\/p><\/td><td><p>Folder reading<\/p><\/td><td><p>Full control<\/p><\/td><\/tr><\/tbody><\/table>\n<h4>When to Choose Each<\/h4>\n<ul><li>Use the <strong>file and directory entries api<\/strong> for lightweight folder access<\/li><li>Use File System Access API for advanced control<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-vnwmr47 elementor-widget elementor-widget-heading\" data-id=\"vnwmr47\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Best Practices for Using the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-lozxkar elementor-widget elementor-widget-text-editor\" data-id=\"lozxkar\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>Performance Optimization<\/h4>\n<ul><li>Limit recursion depth<\/li><li>Process files in batches<\/li><\/ul>\n<h4>Error Handling<\/h4>\n<ul><li>Validate file types early<\/li><li>Handle missing entries immediately<\/li><\/ul>\n<h4>User Experience Improvements<\/h4>\n<ul><li>Provide clear upload feedback<\/li><li>Show progress indicators<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-u9ikwr9 elementor-widget elementor-widget-heading\" data-id=\"u9ikwr9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Data Loss Risks When Using the File and Directory Entries API<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c3wya79 elementor-widget elementor-widget-text-editor\" data-id=\"c3wya79\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Although the API improves flexibility, risks still exist. For example:<\/p>\n<ul><li>Files may be skipped during traversal<\/li><li>Upload processes may fail<\/li><li>Users may overwrite data<\/li><\/ul>\n<p>In practice, these issues appear frequently. Therefore, preparation is critical.<\/p>\n<h3>How to Recover Lost Files After API Operations<\/h3>\n<h4>Common Recovery Methods<\/h4>\n<p>Users often try:<\/p>\n<ul><li><a href=\"https:\/\/www.amagicsoft.com\/deleted-file-recovery\/how-i-recover-deleted-files-from-recycle-bin.html\">Checking recycle bins<\/a><\/li><li>Restoring <a href=\"https:\/\/www.amagicsoft.com\/wiki\/backup-offer-strategy.html\">backups<\/a><\/li><li>Re-uploading files<\/li><\/ul>\n<h4>Limitations of Basic Methods<\/h4>\n<p>However, these methods may fail. For example, <a href=\"https:\/\/www.amagicsoft.com\/deleted-file-recovery\/restore-permanently-deleted-files.html\">permanently deleted files<\/a> cannot be restored easily.<\/p>\n<h3>A Practical Solution for File Recovery<\/h3>\n<p>When standard methods do not work, a dedicated recovery tool offers a more reliable solution. In this context, <a href=\"https:\/\/www.amagicsoft.com\/magic-data-recovery\">Magic Data Recovery<\/a> provides practical support.<\/p>\n<h4>What Problems It Solves<\/h4>\n<ul><li>Accidental deletion<\/li><li>Missing files after API operations<\/li><li>Corrupted or inaccessible data<\/li><\/ul>\n<h4>Key Advantages<\/h4>\n<ul><li>Deep scanning improves recovery success<\/li><li>Simple interface reduces complexity<\/li><li>Supports multiple file systems<\/li><\/ul>\n<h4>Real-World Scenario<\/h4>\n<p>For example, if files disappear during a folder upload using the <strong>file and directory entries api<\/strong>, users can scan their device and restore lost data quickly.<\/p>\n<h4>Why It Is More Reliable<\/h4>\n<p>Compared to manual solutions, dedicated tools deliver more consistent results. In addition, they reduce the risk of permanent <a href=\"https:\/\/www.amagicsoft.com\/wiki\/causes-of-data-loss-statistics.html\">data loss<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-kj219ir elementor-widget elementor-widget-image\" data-id=\"kj219ir\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/01\/select-lost-partition.webp\" title=\"\" alt=\"Using Magic Data Recovery when data loss happens using file and directory entries api\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-24rf9ws elementor-widget elementor-widget-heading\" data-id=\"24rf9ws\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-oyk1h71 elementor-widget elementor-widget-text-editor\" data-id=\"oyk1h71\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <strong>file and directory entries api<\/strong> offers a practical way to handle folder uploads and directory traversal in web applications. It improves efficiency and enables better file management. However, due to its limitations and potential risks, developers should use it carefully and consider modern alternatives when needed.<\/p>\n<p>At the same time, file operations always involve some risk. Therefore, using a reliable recovery solution becomes essential. <a href=\"https:\/\/www.amagicsoft.com\/magic-data-recovery\">Magic Data Recovery<\/a> provides a practical and efficient way to restore lost files, making it a valuable addition to any workflow that relies on file handling APIs.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4b7c33d e-con-full e-flex e-con e-child\" data-id=\"4b7c33d\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-ea5c5b2 e-con-full e-flex e-con e-child\" data-id=\"ea5c5b2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-dcc1090 elementor-widget__width-auto animated-fast elementor-align-center elementor-widget elementor-widget-elementskit-button\" data-id=\"dcc1090\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;none&quot;,&quot;_animation_delay&quot;:200}\" data-widget_type=\"elementskit-button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"ekit-wid-con\" >\t\t<div class=\"ekit-btn-wraper\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/download.amagicsoft.com\/product\/mdr\/magic-data-recovery.exe\" class=\"elementskit-btn  whitespace--normal\" id=\"\">\n\t\t\t\t\tDownload Magic Data Recovery\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n        <\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1cc03f6 downloadtext elementor-widget elementor-widget-text-editor\" data-id=\"1cc03f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center;\">Supports Windows 7\/8\/10\/11 and Windows Server<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ivv4xkn elementor-widget elementor-widget-heading\" data-id=\"ivv4xkn\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">FAQ<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-yql2bel faq-no-toc dtec-faq elementor-widget elementor-widget-elementskit-faq\" data-id=\"yql2bel\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementskit-faq.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"ekit-wid-con\" >\n                <div class=\"elementskit-single-faq elementor-repeater-item-4jffvsb\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">What is the File and Directory Entries API used for?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                The File and Directory Entries API is used to process files and folders selected by users in a web browser. It is commonly used for folder uploads, drag-and-drop file handling, recursive directory traversal, and preserving folder structure during upload.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-bq57ej2\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">Is the File and Directory Entries API still supported?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                The API is still available in some browsers, especially Chromium-based browsers, but it is not a fully universal browser standard. Developers should always check browser compatibility before using it in production and provide fallback methods when needed.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-9h3g75h\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">How do I upload a folder in JavaScript?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                You can use an input element with the webkitdirectory attribute to let users select an entire folder. After selection, JavaScript can read the FileList and use each file\u2019s webkitRelativePath to understand the folder structure.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-fbaegrh\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">How do I read a dropped folder in JavaScript?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                You can listen for the drop event and use webkitGetAsEntry() on each DataTransferItem. This allows you to get a FileSystemEntry object and check whether the dropped item is a file or a directory.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-nvmzyaa\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">What is FileSystemEntry?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                FileSystemEntry is the base interface used by the File and Directory Entries API. It represents either a file or a directory. Developers can check its isFile and isDirectory properties to decide how to handle the entry.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-nzn6jm8\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">What is the difference between FileSystemFileEntry and FileSystemDirectoryEntry?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                FileSystemFileEntry represents a file and can be used to get the actual File object. FileSystemDirectoryEntry represents a directory and can create a directory reader to list and process its child entries.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-20umggy\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">What are the limitations of the File and Directory Entries API?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                The main limitations are browser compatibility, inconsistent support for non-standard methods, read-only access in many use cases, and the need for recursive logic when handling nested folders. It is useful, but developers should not rely on it as the only solution for all file management tasks.            <\/div>\n        <\/div>\n                <div class=\"elementskit-single-faq elementor-repeater-item-140c9b5\">\n            <div class=\"elementskit-faq-header\">\n                <h3 class=\"elementskit-faq-title\">What is the best alternative to the File and Directory Entries API?<\/h3>\n            <\/div>\n            <div class=\"elementskit-faq-body\">\n                For modern file handling, the File System Access API can be a better option in supported browsers because it provides more direct access to files and directories. However, it also has compatibility and permission limitations, so the best choice depends on the project\u2019s browser support requirements.            <\/div>\n        <\/div>\n                                <script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What is the File and Directory Entries API used for?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The File and Directory Entries API is used to process files and folders selected by users in a web browser. It is commonly used for folder uploads, drag-and-drop file handling, recursive directory traversal, and preserving folder structure during upload.\"}},{\"@type\":\"Question\",\"name\":\"Is the File and Directory Entries API still supported?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The API is still available in some browsers, especially Chromium-based browsers, but it is not a fully universal browser standard. Developers should always check browser compatibility before using it in production and provide fallback methods when needed.\"}},{\"@type\":\"Question\",\"name\":\"How do I upload a folder in JavaScript?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You can use an input element with the webkitdirectory attribute to let users select an entire folder. After selection, JavaScript can read the FileList and use each file\u2019s webkitRelativePath to understand the folder structure.\"}},{\"@type\":\"Question\",\"name\":\"How do I read a dropped folder in JavaScript?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You can listen for the drop event and use webkitGetAsEntry() on each DataTransferItem. This allows you to get a FileSystemEntry object and check whether the dropped item is a file or a directory.\"}},{\"@type\":\"Question\",\"name\":\"What is FileSystemEntry?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"FileSystemEntry is the base interface used by the File and Directory Entries API. It represents either a file or a directory. Developers can check its isFile and isDirectory properties to decide how to handle the entry.\"}},{\"@type\":\"Question\",\"name\":\"What is the difference between FileSystemFileEntry and FileSystemDirectoryEntry?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"FileSystemFileEntry represents a file and can be used to get the actual File object. FileSystemDirectoryEntry represents a directory and can create a directory reader to list and process its child entries.\"}},{\"@type\":\"Question\",\"name\":\"What are the limitations of the File and Directory Entries API?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The main limitations are browser compatibility, inconsistent support for non-standard methods, read-only access in many use cases, and the need for recursive logic when handling nested folders. It is useful, but developers should not rely on it as the only solution for all file management tasks.\"}},{\"@type\":\"Question\",\"name\":\"What is the best alternative to the File and Directory Entries API?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"For modern file handling, the File System Access API can be a better option in supported browsers because it provides more direct access to files and directories. However, it also has compatibility and permission limitations, so the best choice depends on the project\u2019s browser support requirements.\"}}]}<\/script>\n                \n    <\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The File and Directory Entries API allows web applications to access files and folders selected by the user, especially through drag-and-drop or directory upload. It is useful when a web app needs to read a folder structure, scan nested files, or preserve relative paths during upload. In this guide, you will learn how the API [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":50345,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[725],"tags":[738],"class_list":["post-50344","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wiki","tag-wiki"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.0 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>File and Directory Entries API: Guide &amp; Examples | Amagicsoft<\/title>\n<meta name=\"description\" content=\"File and Directory Entries API guide with JavaScript examples for folder uploads, drag-and-drop, directory traversal, and browser limits.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.amagicsoft.com\/fr\/wiki\/file-and-directory-entries-api.html\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"File and Directory Entries API: JavaScript Folder Upload &amp; Directory Traversal\" \/>\n<meta property=\"og:description\" content=\"File and Directory Entries API guide with JavaScript examples for folder uploads, drag-and-drop, directory traversal, and browser limits.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.amagicsoft.com\/fr\/wiki\/file-and-directory-entries-api.html\" \/>\n<meta property=\"og:site_name\" content=\"Amagicsoft\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/amagicsoft.2024\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-19T08:26:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-09T07:32:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Vasilii\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Amagicsoft\" \/>\n<meta name=\"twitter:site\" content=\"@Amagicsoft\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vasilii\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html\"},\"author\":{\"name\":\"Vasilii\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#\\\/schema\\\/person\\\/5cc725a7bfa9bc0e962db26a19dfb8c2\"},\"headline\":\"File and Directory Entries API: JavaScript Folder Upload &#038; Directory Traversal\",\"datePublished\":\"2026-03-19T08:26:50+00:00\",\"dateModified\":\"2026-05-09T07:32:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html\"},\"wordCount\":1236,\"publisher\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/File-and-Directory-Entries-API-Guide-Examples.webp\",\"keywords\":[\"WiKi\"],\"articleSection\":[\"Wiki\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html\",\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html\",\"name\":\"File and Directory Entries API: Guide & Examples | Amagicsoft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/File-and-Directory-Entries-API-Guide-Examples.webp\",\"datePublished\":\"2026-03-19T08:26:50+00:00\",\"dateModified\":\"2026-05-09T07:32:55+00:00\",\"description\":\"File and Directory Entries API guide with JavaScript examples for folder uploads, drag-and-drop, directory traversal, and browser limits.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#primaryimage\",\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/File-and-Directory-Entries-API-Guide-Examples.webp\",\"contentUrl\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/File-and-Directory-Entries-API-Guide-Examples.webp\",\"width\":1350,\"height\":750,\"caption\":\"File and Directory Entries API Guide & Examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/wiki\\\/file-and-directory-entries-api.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.amagicsoft.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"File and Directory Entries API: JavaScript Folder Upload &#038; Directory Traversal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#website\",\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/\",\"name\":\"Amagicsoft\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#organization\",\"name\":\"Amagicsoft\",\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/cropped-logo_512x512-1.webp\",\"contentUrl\":\"https:\\\/\\\/www.amagicsoft.com\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/cropped-logo_512x512-1.webp\",\"width\":512,\"height\":512,\"caption\":\"Amagicsoft\"},\"image\":{\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/amagicsoft.2024\\\/\",\"https:\\\/\\\/x.com\\\/Amagicsoft\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.amagicsoft.com\\\/zh\\\/#\\\/schema\\\/person\\\/5cc725a7bfa9bc0e962db26a19dfb8c2\",\"name\":\"Vasilii\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g\",\"caption\":\"Vasilii\"},\"description\":\"Vasilii is a data recovery specialist with around 10 years of hands-on experience in the field. Throughout his career, he has successfully solved thousands of complex cases involving deleted files, formatted drives, lost partitions, and RAW file systems. His expertise covers both manual recovery methods using professional tools like hex editors and advanced automated solutions with recovery software. Vasilii's mission is to make reliable data recovery knowledge accessible to both IT professionals and everyday users, helping them safeguard their valuable digital assets.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vasilii-zaitsev-65894b376\\\/\"],\"url\":\"https:\\\/\\\/www.amagicsoft.com\\\/fr\\\/author\\\/vasilii\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"API des entr\u00e9es de fichiers et de r\u00e9pertoires : Guide et exemples | Amagicsoft","description":"Guide de l'API pour les entr\u00e9es de fichiers et de r\u00e9pertoires avec des exemples de JavaScript pour les t\u00e9l\u00e9chargements de dossiers, le glisser-d\u00e9poser, la travers\u00e9e de r\u00e9pertoires et les limites du navigateur.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.amagicsoft.com\/fr\/wiki\/file-and-directory-entries-api.html","og_locale":"fr_FR","og_type":"article","og_title":"File and Directory Entries API: JavaScript Folder Upload & Directory Traversal","og_description":"File and Directory Entries API guide with JavaScript examples for folder uploads, drag-and-drop, directory traversal, and browser limits.","og_url":"https:\/\/www.amagicsoft.com\/fr\/wiki\/file-and-directory-entries-api.html","og_site_name":"Amagicsoft","article_publisher":"https:\/\/www.facebook.com\/amagicsoft.2024\/","article_published_time":"2026-03-19T08:26:50+00:00","article_modified_time":"2026-05-09T07:32:55+00:00","og_image":[{"width":1350,"height":750,"url":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp","type":"image\/webp"}],"author":"Vasilii","twitter_card":"summary_large_image","twitter_creator":"@Amagicsoft","twitter_site":"@Amagicsoft","twitter_misc":{"\u00c9crit par":"Vasilii","Dur\u00e9e de lecture estim\u00e9e":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#article","isPartOf":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html"},"author":{"name":"Vasilii","@id":"https:\/\/www.amagicsoft.com\/zh\/#\/schema\/person\/5cc725a7bfa9bc0e962db26a19dfb8c2"},"headline":"File and Directory Entries API: JavaScript Folder Upload &#038; Directory Traversal","datePublished":"2026-03-19T08:26:50+00:00","dateModified":"2026-05-09T07:32:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html"},"wordCount":1236,"publisher":{"@id":"https:\/\/www.amagicsoft.com\/zh\/#organization"},"image":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#primaryimage"},"thumbnailUrl":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp","keywords":["WiKi"],"articleSection":["Wiki"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html","url":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html","name":"API des entr\u00e9es de fichiers et de r\u00e9pertoires : Guide et exemples | Amagicsoft","isPartOf":{"@id":"https:\/\/www.amagicsoft.com\/zh\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#primaryimage"},"image":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#primaryimage"},"thumbnailUrl":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp","datePublished":"2026-03-19T08:26:50+00:00","dateModified":"2026-05-09T07:32:55+00:00","description":"Guide de l'API pour les entr\u00e9es de fichiers et de r\u00e9pertoires avec des exemples de JavaScript pour les t\u00e9l\u00e9chargements de dossiers, le glisser-d\u00e9poser, la travers\u00e9e de r\u00e9pertoires et les limites du navigateur.","breadcrumb":{"@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#primaryimage","url":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp","contentUrl":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2026\/03\/File-and-Directory-Entries-API-Guide-Examples.webp","width":1350,"height":750,"caption":"File and Directory Entries API Guide & Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/www.amagicsoft.com\/wiki\/file-and-directory-entries-api.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.amagicsoft.com\/"},{"@type":"ListItem","position":2,"name":"File and Directory Entries API: JavaScript Folder Upload &#038; Directory Traversal"}]},{"@type":"WebSite","@id":"https:\/\/www.amagicsoft.com\/zh\/#website","url":"https:\/\/www.amagicsoft.com\/zh\/","name":"Amagicsoft","description":"","publisher":{"@id":"https:\/\/www.amagicsoft.com\/zh\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.amagicsoft.com\/zh\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.amagicsoft.com\/zh\/#organization","name":"Amagicsoft","url":"https:\/\/www.amagicsoft.com\/zh\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.amagicsoft.com\/zh\/#\/schema\/logo\/image\/","url":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2025\/04\/cropped-logo_512x512-1.webp","contentUrl":"https:\/\/www.amagicsoft.com\/wp-content\/uploads\/2025\/04\/cropped-logo_512x512-1.webp","width":512,"height":512,"caption":"Amagicsoft"},"image":{"@id":"https:\/\/www.amagicsoft.com\/zh\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/amagicsoft.2024\/","https:\/\/x.com\/Amagicsoft"]},{"@type":"Person","@id":"https:\/\/www.amagicsoft.com\/zh\/#\/schema\/person\/5cc725a7bfa9bc0e962db26a19dfb8c2","name":"Vasilii","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12fbd3cf5c3fd435565e0ee05fea6fb3ae89413aafdccfb30c0c821c69a44d12?s=96&d=mm&r=g","caption":"Vasilii"},"description":"Vasilii est un sp\u00e9cialiste de la r\u00e9cup\u00e9ration de donn\u00e9es qui poss\u00e8de une dizaine d'ann\u00e9es d'exp\u00e9rience pratique dans ce domaine. Tout au long de sa carri\u00e8re, il a r\u00e9solu avec succ\u00e8s des milliers de cas complexes impliquant des fichiers supprim\u00e9s, des disques format\u00e9s, des partitions perdues et des syst\u00e8mes de fichiers RAW. Son expertise couvre \u00e0 la fois les m\u00e9thodes de r\u00e9cup\u00e9ration manuelle \u00e0 l'aide d'outils professionnels tels que les \u00e9diteurs hexagonaux et les solutions automatis\u00e9es avanc\u00e9es \u00e0 l'aide de logiciels de r\u00e9cup\u00e9ration. La mission de Vasilii est de rendre accessible aux professionnels de l'informatique et aux utilisateurs quotidiens des connaissances fiables en mati\u00e8re de r\u00e9cup\u00e9ration de donn\u00e9es, afin de les aider \u00e0 sauvegarder leurs pr\u00e9cieuses ressources num\u00e9riques.","sameAs":["https:\/\/www.linkedin.com\/in\/vasilii-zaitsev-65894b376\/"],"url":"https:\/\/www.amagicsoft.com\/fr\/author\/vasilii"}]}},"_links":{"self":[{"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/posts\/50344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/comments?post=50344"}],"version-history":[{"count":3,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/posts\/50344\/revisions"}],"predecessor-version":[{"id":53074,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/posts\/50344\/revisions\/53074"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/media\/50345"}],"wp:attachment":[{"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/media?parent=50344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/categories?post=50344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amagicsoft.com\/fr\/wp-json\/wp\/v2\/tags?post=50344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}