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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:38:50+00:00 2026-05-28T23:38:50+00:00

plupload creates nice ids in file object . How this id can be sent

  • 0

plupload creates nice ids in file object. How this id can be sent to the upload script?
The upload script has 3 variables in $_POST – file name, chunk number and total number of chunks.

How to add another parameter to plupload’s POST request (in my case, the file.id)?

  • 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-28T23:38:51+00:00Added an answer on May 28, 2026 at 11:38 pm

    The first step would be to add a handler to the BeforeUpload event.

    Then, if you are using multipart, you can change the uploader settings to dynamically set different multipart params:

    plupload_instance.bind('BeforeUpload', function (up, file) {
        up.settings.multipart_params = {fileid: file.id}
    });
    

    (warning: this example overrides any and all multipart_params, you can play it smarter than that by just setting fileid)

    if you are not using multipart, your only options would be to pass the argument as a header, or to manually add the param to the URL for each file (these 2 options should also be done within BeforeUpload).
    Note that when not using multipart, plupload will add the name and chunk params to the URL after any URL you already set for the uploader, for each file, so this is where extra params go.

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

Sidebar

Related Questions

I upload file = Plupload . I checked variables $_FILES , $_POST , $this->data
I use plupload with html5. I try to upload file from cross-domain site. File
I'm using plupload to make an ajax file uploading. Now the plupload.Uploader class has
I've got a little jQuery here: $.ajax({ url: $this.fileUploadUrl, data: 'url=' + encodeURIComponent(file.name), type:
I am using plupload to perform multipart file uploads. On success, it returns the
I'm using plupload to upload multiple files at once. I want to assign unique
I'm using plupload to upload files to my server ( http://www.plupload.com/index.php ), however I
I am using plupload ( http://www.plupload.com ) script and it's working ok but it
I can't seem to make the response a json object. the ajax function (url
A little background. I am using plupload to upload files within my application. The

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.