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

The Archive Base Latest Questions

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

I want to write a jQuery file uploading program, using this plug-in http://aquantum-demo.appspot.com/file-upload Despite

  • 0

I want to write a jQuery file uploading program,
using this plug-in http://aquantum-demo.appspot.com/file-upload
Despite this plug-in is really good, I encounter a problem.

This is what I did:
I designed a form which the graphics uploading part uses the plug-in listed above.
However, this plug-in also requires a form to activate PHP.

Program Excerpt:

<form action="" method="get">
<--This layer probably needs other form information ex: name, telephone no....etc !-->
   <form action="upload.php" method="POST" enctype="multipart/form-data">
        <div class="fileupload-buttonbar">
            <label class="fileinput-button">
                <span>Add files...</span>
                <input type="file" name="files[]" multiple>
            </label>
            <button type="submit" class="start">Start upload</button>
            <button type="reset" class="cancel">Cancel upload</button>
            <button type="button" class="delete">Delete files</button>
        </div>
    </form>
</form>    

I know that the malfunction is caused by the two forms, if so, is there any way to fix it?
Or is there better ways to submit forms? Please HELP me! Thank you guys!

  • 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-26T13:45:22+00:00Added an answer on May 26, 2026 at 1:45 pm

    The problem is that you have nested forms. Don’t use nested forms. Their behavior is undefined.

    From looking at your code, it’s not clear as to why you even need the first form. It has no action and so it doesn’t seem to be doing anything. Is there a reason that you cannot include the file-upload controls within the existing form?

    If you cannot, you can do one of two things:

    • Don’t provide a submit button for the file-upload form. Add a submit handler to the contact form. In this handler, you can explicitly fire the submit event on the file-upload form. This method is less work on the front-end, but you have two explicit submissions and so you will probably need code on the back-end to figure out which file(s) are associated with which contacts.
    • Have hidden fields on the file-upload form that match up with the fields in your contact form. Don’t provide a submit handler for the contact form. Add a submit handler to the file-upload form. In this handler, you can copy values over from the contact form to the hidden fields on the file-upload form. This method is more work on the front-end, but you’re submitting everything in one go and so you don’t have to do extra work on the back-end to figure out which files go with which contact. Overall I think this method is easier.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to read multiple RSS feeds using jQuery. I'm trying to write a
I am extracting content from a web page using JS/JQuery and want to write
I want to make some file operation using Javascript or jQuery like: File create
This is my js file in which I am using jquery to verify login
I want to know how to correctly write an if statement with jquery. I
before this I wrote all jquery-code into main fail. Now I want to move
I am using jQuery and PHP to write JSON data to my server. I'm
Hello I want write my own desktop sharing application in Java. The application should
I want to write a Swing application in Griffon but I am not sure
I want to write a command that specifies the word under the cursor 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.