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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:45:05+00:00 2026-05-26T23:45:05+00:00

When files are added i want to start the upload process automatically. I called

  • 0

When files are added i want to start the upload process automatically. I called the start function at the end of FilesAdded but it doesn’t start the upload.

uploader.bind('FilesAdded', function(up, files) {
      var str = "";
      for (var i in files) {
        str += '<div id="' + files[i].id + '">' + files[i].name + ' (' + plupload.formatSize(files[i].size) + ') <b></b></div>';
      }
      $('#filelist').html(str);
      up.refresh();
      up.start();
    });

Here is my creation code

var uploader = new plupload.Uploader({
      runtimes: 'html5,flash,silverlight',
      autostart : true,
      url: '<%= images_path %>',
      max_file_size: '10mb',
      multipart: true,
      browse_button: "pickfiles",
      container: "the-uploader",
      drop_element : "drop-area",  
      multipart_params: {
        '_http_accept': 'application/javascript',
        '<%=request_forgery_protection_token%>': '<%=form_authenticity_token%>',
        '<%=request.session_options[:key]%>': '<%=request.session_options[:id]%>'
      },
      filters: [
        {title: "Images", extensions: "avi,jpg,jpeg,png,zip"}
      ],
    });
  • 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-26T23:45:06+00:00Added an answer on May 26, 2026 at 11:45 pm

    Adding up.start() in your FilesAdded bind should start the upload when a file is added. I’ve gone down the route of calling my uploader like so (I had problems doing it the way you are trying to call it):

    $(function() {
        // Setup html5 version
        $("#html5_uploader").pluploadQueue({
          // General settings
          runtimes : 'html5',
          url : 'upload.php',
          max_file_size : '10mb',
          chunk_size : '1mb',
          unique_names : true,
          dragdrop : true,
          multiple_queues : false,
          multi_selection : false,
          max_file_count : 1,
    
          // Specify what files to browse for
          filters : [
            {title : "Text files", extensions : "txt"}
          ],
    
          init : {
            FilesAdded: function(up, files) {
              up.start();
            },
            UploadComplete: function(up, files) {
              $.each(files, function(i, file) {
                // Do stuff with the file. There will only be one file as it uploaded straight after adding!
              });
            }
          }
        });
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to see what files were modded/added/deleted between 2 arbitrary revisions. How
I want my scripts and css files to be added in the footer and
I only want a list of files that have been added (not ones that
I want to retrieve a list of the files that has been added or
I want to automatically add files to an Xcode project that is created from
I am reading log files but not all lines want to be processed straight
I added a text file to a testapp's solution and I want to read
Given 2 file revisions I want to know how many lines were added/modified/deleted. I
I added a batch (.bat) file to my project. I want to add a
is there a way to find all script files added to a page in

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.