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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:12:38+00:00 2026-05-30T16:12:38+00:00

I am trying to find example code to upload files asyncronously (via Ajax) in

  • 0

I am trying to find example code to upload files asyncronously (via Ajax) in IE8. Also upload progress would be nice, but not mandatory. Id like PHP code to be able to deal with the file server side. I keep coming across examples for other browsers using FormData, but I cannot use that. Could any body please point me in the right direction?

  • 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-30T16:12:39+00:00Added an answer on May 30, 2026 at 4:12 pm

    This is a good tutorial on the subject: http://hungred.com/how-to/tutorial-easiest-asynchronous-upload-file-ajax-upload/

    HTML:

    <form id="my_form" name="form" action="upload.php" method="POST" 
    enctype="multipart/form-data" >
    
    <div id="main">
    <input name="my_files" id="my_file" size="27" type="file" />
    <input type="button" name="action" value="Upload" onclick="redirect()"/>
    <iframe id='my_iframe' name='my_iframe' src="">
    </iframe>
    </div>
    
    </form>
    

    JS:

    function redirect()
    {
    //'my_iframe' is the name of the iframe
    document.getElementById('my_form').target = 'my_iframe';
    document.getElementById('my_form').submit();
    }
    

    PHP:

    $uploaddir = '/images/';
    $uploadfile = $uploaddir . basename($_FILES['my_files']['name']);
    
    if (move_uploaded_file($_FILES['my_files']['my_name'], $uploadfile)) {
    echo "success";
    } else {
    echo "error";
    }
    

    That will get you started =)

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

Sidebar

Related Questions

I am going mad trying to find an example of file upload code in
Every example I can find is in C++, but I'm trying to keep my
I am trying to find some example code or best practices about making CMS-type
I am trying to run the example code from the MATLAB Doc, but when
I am trying to find some example code to build a bandwidth monitor to
I'm trying to find a solution for this problem. This is my example code:
I was trying to find an example about how to use TryScan , but
I'm learning jQuery, and I'm trying to find a simple code example that will
Trying to find an example that has css rollover using sprites & sliding door
I am trying to find an example of placing an element above the Table

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.