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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T08:00:26+00:00 2026-05-17T08:00:26+00:00

Sending a file/key to Amazon S3 via a html form and HTTP Post is

  • 0

Sending a file/key to Amazon S3 via a html form and HTTP Post is quite easy and working.

But I want to send a file to several S3-compatible sites via HTTP POST and a single html form.

How can I do this?

As far as I know, HTTP POST can only be directed at a single target location.

I want the file to be sent to the first S3-compatible site (server) and then to the second one and than to the third one and so on without any need for the user to interact.

Is this possible?

Thanks a lot for any help.

  • 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-17T08:00:28+00:00Added an answer on May 17, 2026 at 8:00 am

    You can use flash to do that for you (a lot easier).

    Or I think you can use invisible frames and javascript. Target the upload on the hidden frames and change the action. The example below will upload the same file one server after the other.

    Here’s the code:

    <!DOCTYPE html>
    <html>
    <head>
    <title>Sample</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $('#button1').click(function(){
    
                $('#frame1').load(function(){
                   $('#form1')
                     .attr('action', 'http://server2/')
                     .attr('target', 'frame2')
                     .submit();
                });
    
                $('#form1')
                   .attr('action', 'http://server1/')
                   .attr('target', 'frame1')
                   .submit();
    
                return true;
            });
        });
    </script>
    <style type="text/css"></style>
    </head>
    <body>
        <form id="form1" method="POST" enctype="multipart/form-data" action="http://cgi-lib.berkeley.edu/ex/fup.cgi"> 
          File to upload: <input type="file" name="upfile" /><br> 
          Notes about the file: <input type="text" name="note" /><br>
        </form>
    
        <button id="button1">Multiple upload</button>
        <br />
    
        <iframe id="frame1" name="frame1"></iframe>
        <iframe id="frame2" name="frame2"></iframe>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to empty an LDF file before sending to a colleague. How do
I'm sending some data over AJAX to a PHP file. It's about filter options.
I'm sending mail from my C# Application, using the SmtpClient. Works great, but I
I'm reading in a file and sending the data (once encrypted) to a dictionary,
I'm having trouble posting form data via CURL to a receiving PHP script located
EDIT: I have made a clean, new project, but still can't get it working.
I need a way to upload a file and POST it into php page
Sending a message from the Unix command line using mail TO_ADDR results in an
Sending a mail through my windows application to a person asking him to log
When sending data over HTTPS, I know the content is encrypted, however I hear

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.