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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:48:00+00:00 2026-06-09T11:48:00+00:00

I understand that it is not possible to upload files using a regular Ajax

  • 0

I understand that it is not possible to upload files using a regular Ajax call, so I would like to simulate the process using a jQuery file upload plugin. I have a form that allows users to enter data for an item that has 3 file inputs named male_image, female_image, and neutral_image. I would like to upload the files in all 3 inputs in the success callback of my Ajax call.

$.ajax({
      type: "POST",
      url: "/manage/processadditem",
      data:  $("#add_form").serialize(),
      dataType: "html",
      success: function( response, textStatus, XHR )
      {
        if(response.indexOf('invalid') >= 0 || response.indexOf('Exception') >= 0){
            //Show them their errors
            alert(response);
        }
        else{
            //Data was good
            //Upload male_/female_/neutral_image to /manage/items/itemimage
            //for further processing
        }

      }
    });

I already have the code set up on the back side to handle the images, I just need to get them there. All of the multiple file input plugins I can find seem to handle sending multiple files from a single input. How can I send from multiple file inputs each with a single file so I can tell them apart on the back end?

  • 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-09T11:48:02+00:00Added an answer on June 9, 2026 at 11:48 am

    you can use this jquery upload and upload multiple files, the example is very easy

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

Sidebar

Related Questions

I understand that nested <form> tags are not allowed, but I would like to
I understand that it is not possible to tell what the user is doing
I do understand that it's not possible to replace the beforeunload dialog with a
I understand that is not possible to have applications with multiple entry points under
I understand that this response clearly states that this is not possible without a
I understand that javascript running in the browser would not be allowed to access
I understand that it's not possible request JSON data from a remote domain due
Please understand that I am not trying to start a flame war. I am
I'm a newcomer to Python but I understand that things should not be done
I understand that branching in CUDA is not recommended as it can adversely affect

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.