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

  • Home
  • SEARCH
  • 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 8439969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:09:15+00:00 2026-06-10T08:09:15+00:00

I am implementing a file processor in JS and HTML 5 and it is

  • 0

I am implementing a file processor in JS and HTML 5 and it is working as expected in Chome, but not in Firefox.

Here is the jsfiddle: http://jsfiddle.net/vapocalypse/G9QbX/

In Firefox, the drop event is forwarded to the browser, which opens the file, not being processed by my script. It behaves as if I dropped something over an empty tab.

What am I doing wrong? I have tried changing from jQuery to native DOM using getElementById and overriding the ondrop method, but same results…

Thanks,
Apoc

  • 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-06-10T08:09:17+00:00Added an answer on June 10, 2026 at 8:09 am

    As far as I can tell, your basic problem is that you’re not cancelling the dragover event on the the element you’re trying to capture the drop event on. The drop event is ignored in this case. Here is the code I added:

    $('#topDiv').bind("dragenter dragover", function(e) {
        e.preventDefault();
        return false;
    });
    

    I also removed the $(document).ready form your code and just set the jsFiddle to run all the JS onDomReady instead, but I don’t think that made much difference. Here’s the example.

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

Sidebar

Related Questions

I am implementing a file sharing system in ASP.NET MVC3. I suppose most file
I'm working on implementing a log based file system for a file as a
I'm implementing a http live streaming server to send audio file to iOS devices.
I'm implementing a php interface to process a .php file containing a bunch of
I'm having few doubts on implementing file downloads. I'm creating an app where I
While implementing XML file reading/writing in my application I saw that when I call
I am implementing cp(file copy) command using mmap(). For that I mapped the source
What’s the difference between Response.AddCacheDependency and Response.AddFileDependency in terms of implementing a file dependency
I am implementing a jquery file upload page. While a user is adding files,
I am implementing a few SharePoint lists that require a file upload , putting

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.