Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6699559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:42:35+00:00 2026-05-26T06:42:35+00:00

Firefox 3.6 let’s you drop a directory onto some element (using the Drag And

  • 0

Firefox 3.6 let’s you drop a directory onto some element (using the Drag And Drop API) and process those files with the FileAPI. How does that work with directories?

The Mac OS X Finder displays some directories as Files (.app, .tmbundle, .abbu, …). In most cases this is wonderful. In the case of interacting with the browser via File- and DND-APIs it’s not. The end-user is incapable of differentiating between a real file and a sort-of-file like my-addressbook-backup.abbu.

The Javascript UI must therefore be able to identify directory structures. If it’s not capable of traversing the structure, it must inform the user accordingly.

Any ideas on how either can be accomplished?

Edit:

I can see the (potential) problems arising when allowing JS to traverse directories. I’m not calling for a directory traversal per se (although I wouldn’t bind being able to). I’m talking about Foo.app being treated as a file (as so seen by the user through Finder.app) but actually being a directory (as so seen when looking at it in Terminal.app).

The File API currently doesn’t provide any traversing mechanisms. So, deeper nested files within an addressbook-dump.abbu wouldn’t be accessible. Are there any thoughts on making this possible?

Otherwise I’d have to tell my OSX users to make an archive (e.g. ZIP) of their address book file and “upload” that zip (which I can actually read in JS). Though this is a workaround, not a solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:42:36+00:00Added an answer on May 26, 2026 at 6:42 am

    Theoretically, what you describe is doable with the FileReader API. For example,
    this demo reads a .zip file (hit load photos.zip), unpacks its contents, and
    displays the list of pictures it contains to the user.

    For general folder drag and drop, there are two bugs holding Chrome/WebKit back: 1, 2. When those get fixe, you’ll be able to drag a folder from the OS onto an <input type="file" webkitdirectory> and traverse all its hierarchy. To see webkitdirectory in action, check out this demo in Chrome.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firefox has this annoying behavior that it let's the user drag and drop any
Let's say my Firefox extension has multiple preferences, but some of them are grouped,
I'm using Firefox 3.5. My doctype is XHTML 1.0 Strict. Let's say I want
In Firefox, we can customize the default values for HTTP headers, let's say for
Does anybody know of a bookmarklet or firefox addon that let's you extract part
I'm trying to manipulate the XUL elements in the Firefox add-on page using the
Let's say I attach a javascript change event handler to a select element, something
Let's say, I have some hundred checkboxes, I select all and submit the form.
Let's look at FireFox. They have a nice big Call To Action button: Firefox
In my Firefox addon I'm looking for a secure way to let content code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.