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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:07:10+00:00 2026-05-24T03:07:10+00:00

I am trying to emulate the multiple upload files in html form that looks

  • 0

I am trying to emulate the multiple upload files in html form that looks similar to Yahoo’s email attachments steps. I have this code as my html form. (outdata is a NSMutableString.)

 id out = @"<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"form1\" id=\"form1\">"
 "<label>upload file:"
 "<p>"
 "</label>"
 "<label>"
 "<input type=\"file\" name=\"file1\" id=\"file1\" value=\"LookUp1\" />"
 "</label>"
 //"<label>"
 //"<input type=\"submit\" name=\"button\" id=\"button\" value=\"Submit1\" />"
 //"</label>"]
 //"</form>"

 //add 2nd browse submit
 //"<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"form1\" id=\"form1\">"
 //"<label>upload file"
 //"</label>"
 "<p>"
 "<label>"
 "<input type=\"file\" name=\"file2\" id=\"file2\" value=\"LookUp2\" />"
 "</label>"
 "<label>"
 "<input type=\"submit\" name=\"button\" id=\"button\" value=\"Submit\" />"
 "</label>"
 "</form>";

[outdata appendString:out];

The result of the html output is below. Basically, the server will save the file on the server hard drive. It worked fine. Except that it only saved the file the first Browse… button not the 2nd one even though I populated both boxes. The goal is that when I clicked on the Submit button, the files in both boxes should be posted one after another.

Is this client side javascript I need to write. Any help would be appreciated.

enter image description here

  • 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-24T03:07:11+00:00Added an answer on May 24, 2026 at 3:07 am

    There are libraries doing this trick, so maybe they can solve your problem completely or inspire you in some way. For example http://digitarald.de/project/fancyupload/ is capable of this.

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

Sidebar

Related Questions

I am trying to emulate the Maps 'Share Location' via email functionality. I have
I have a link that i am trying to emulate a click on. I
I'm trying to emulate what growl does with an app that I have. At
We are trying to emulate a device that runs off a parallel port. We
I'm trying to emulate a tab bar with HTML. I'd like the width of
I have several UIImage subviews in one UIScrollView. I'm trying to emulate iPhones's Photos
Is there any open-source software that is trying to implement and emulate the human
I'm trying to emulate the Html Helper for LabelFor to work with the [Description]
I have a list of work that I'm trying to work on until all
I'm trying to emulate the heart transition shown at: http://www.templatemonster.com/flash-templates/31595.html?scr_type=1&hide_flash=0&tab=32 in HTML5 / JS,

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.