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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:35:38+00:00 2026-05-23T20:35:38+00:00

A little background. I am using plupload to upload files within my application. The

  • 0

A little background. I am using plupload to upload files within my application.

The url passed is the url to my aspx where I handle all the processing of the file.

What happens is, the first time you browse for and select a file nothing happens. The second time, it posts back both form submissions immediately.

Can you find any glaring omissions from the below code?

// Initialize the uploader
uploader = new plupload.Uploader({
                    runtimes: 'html5,gears,flash,silverlight,browserplus',
                    browse_button: 'browse',
                    drop_element: 'uploadContainer',
                    container: 'uploadContainer',
                    max_file_size: '10mb',
                    multi_selection: false,
                    url: 'someURLHere',
                    filters: [{ title: "Pdf files", extensions: "pdf"}]
                });

FilesAdded event fires when (obviously) a file is added

// File Added event 
uploader.bind('FilesAdded', function (up, files) {
                    $.each(files, function (i, file) {
                        // Add element to file object
                        file.formattedSize = plupload.formatSize(file.size);

                    $('form').submit();

                    // Reposition Flash/Silverlight
                    up.refresh();
                });

Submit the form

$('form').submit(function (e) {
                    uploader.start();
                    e.preventDefault();
                });

HTML

<form id="uploadForm">
   <div id="uploadContainer">
     <span id="uploadDragText" style="display: none;">Drag and Drop items here</span
     <div id="fileList"></div>
     <button id="browse" class="ButtonSubmit">Browse...</button> 
   </div>
</form>

I was using this great answer as a starting point. using Plupload with ASP.NET/C#

  • 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-23T20:35:39+00:00Added an answer on May 23, 2026 at 8:35 pm

    The fix to this is actually very simple.

    I needed to init() the uploader BEFORE I bound any events to it, as the init() actually binds some default handlers.

    // Initialize the uploader
    uploader = new plupload.Uploader({
                        runtimes: 'html5,gears,flash,silverlight,browserplus',
                        browse_button: 'browse',
                        drop_element: 'uploadContainer',
                        container: 'uploadContainer',
                        max_file_size: '10mb',
                        multi_selection: false,
                        url: 'someURLHere',
                        filters: [{ title: "Pdf files", extensions: "pdf"}]
                    });
    
    
       uploader.init();
    
       // Then add in any of your event handlers.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First a little background, I'm using jdk 1.6. I've got a 2 column table
A little background first. I've been tasked with encrypting files with a Powershell script
A little background: I'm using Spring and Hibernate to create a really simple domain/dao/service
Just a little background on my project: I'm implementing an SMS encryption program using
I'm using wxPython to search all the files in a particular directory. As it
First, I should be clear by providing a little background: I'm using Eclipse to
Here's a little background on my solution: ASP.Net MVC app Using Linq-to-SQL with table-per-hierarchy
Little background.. I'm in the process of making an OpenGL game using Java and
first, a little background. I am using VS2010 and have a WCF service that
Just a little background: I am using Access 2010 to create forms and VBA

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.