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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:44:24+00:00 2026-06-11T01:44:24+00:00

I know there has been several questions regarding this very question and I have

  • 0

I know there has been several questions regarding this very question and I have combed through many of them and have not found a right way to accomplish the goal properly. Essentially, I am trying to capture multiple file inputs in the form and push them to PHP. I have the PHP part at least figured out but its the Jquery im struggling with. One of the main problems I have noticed through debugging is that my action parameter is not getting through at all. My code I posted is below. Any help would be greatly appreciated. Thanks.

$(document).ready(function () {
  //if submitting imgages form
  $('#submit').click(function () {
    // match anything not a [ or ]
    regexp = /^[^[\]]+/;
    var fileInput = $('.putImages input[type="file"]');
    var fileInputName = regexp.exec(fileInput.attr('name'));

    // make files available
    var data2 = new FormData(fileInput);
    jQuery.each($(fileInput)[0].files, function (i, file) {
      data2.append(fileInputName + '[' + i + ']', file);
    });

    //organize data
    var data = new FormData($('input[name^="uploadFile"]'));
    jQuery.each($('input[name^="uploadFile"]')[0].files, function (i, file) {
      data.append(i, file);
    });

    $.ajax({
      type: 'GET',
      url: 'productadminupdate.php',
      data: data2 + "&action=" + 'images',
      cache: false,
      contentType: false,
      processData: false,
      success: function (response) {
        $('#imgform_result').html(response).fadeIn();
      }
    });

    return false;
  });
});
  • 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-11T01:44:25+00:00Added an answer on June 11, 2026 at 1:44 am

    I don’t know if I got it, but when people think about ajax uploader, they don’t really know that. In reality, it is not JavaScript doing the job.
    The technique exists in targeting the action of the form to an Iframe.
    This Iframe should be hidden
    Here is an example:

    <form method='post' enctype='multipart/form-data' action='YOUR_FILE.php' target='upload_iframe'>        
        <label>photo1:</label>
        <input type='file' name='photo1'/>
        <label>photo2:</label>
        <input type='file' name='photo2'/>
        <label>photo3:</label>
        <input type='file' name='photo3'/>
        <label>photo4:</label>
        <input type='file' name='photo4'/>
        <label>photo5:</label>
        <input type='file' name='photo5'/>
        <input type='submit' value='Send'/>
        </form>
    </div>
    <iframe name='upload_iframe'></iframe>
    

    So in the Iframe, your php code will make the upload, getting the information using $_FILES.

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

Sidebar

Related Questions

I know this Question has been asked several times before, and I have tried
I know this question has been asked several times, however, after digging through question
I know this question has been asked several times, but I can't quite seem
I know that this question have been asked several times. But I can't get
There have been several questions on SO regarding getting Contacts numbers using the Contacts
I know this question has been asked many times over, but I am currently
I know this question has been asked many times before, but I haven't found
I know this has been discussed a lot of times but is there any
I know this question has kind-a started religious wars in past and there might
I know this topic has been approached several times before in various ways, but

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.