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 9112971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:51:45+00:00 2026-06-17T03:51:45+00:00

I have setup a page where multiple instances of the jQuery File Upload plugin

  • 0

I have setup a page where multiple instances of the jQuery File Upload plugin can be added by clicking a button. The problem I’m having is when you drag files to one of the instances, it adds them to all. I’ve added the code suggested by the developer to keep this from happening, but it seems to have no effect (though the function is called, I have it logging to console.)

Here’s the page I’m working on:
http://bwobst.clients.thomporter.com/upload.html

Here’s the JavaScript file that creates the uploaders:
http://bwobst.clients.thomporter.com/upload.js

Or if you prefer, the CoffeeScript:
http://bwobst.clients.thomporter.com/upload.coffee

FYI, this is the bit of code the developer suggests to use:

$(document).bind('drop dragover', function(e) {
  e.preventDefault();
});

As I said, I tried adding a console.log to it, and it did indeed get called when I dragged files to the window, but the e.preventDefault() seems to have had no effect.

  • 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-17T03:51:46+00:00Added an answer on June 17, 2026 at 3:51 am

    as said in the documentation you have to specify a dropZone, otherwise its the whole document.
    you should change this line:

    $('#uploader' + uploaderCount).fileupload();
    

    to

    $('#uploader' + uploaderCount).fileupload({dropZone:$('#uploader' + uploaderCount)});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you setup a variable for javascript in one page and have another page
I have multiple image maps on one page, and it's a requirement to setup
I am using jQuery plugin supersized for full page background images (slideshow), I have
I have an asp.net page with multiple validation summaries setup with ShowMessageBox=True and several
I have a page setup with a scroll bar that is set with a
So I have a page setup that lets you expend text boxes upon click:
I have a setup where i have a unordered list on a page with
I have my asp.net sub-master page setup like this: <asp:Content ID=MainContent runat=server ContentPlaceHolderID=mainContent> <!doctype
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I have a page that is setup like this public partial class _Default :

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.