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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:11:18+00:00 2026-06-17T10:11:18+00:00

I know about jquery-file-upload and uploadify, but both seem to depend on flash solutions/fallbacks

  • 0

I know about jquery-file-upload and uploadify, but both seem to depend on flash solutions/fallbacks that dictate the user interface.

How can I upload an image file asynchronously just with javascript?

Every time the file input changes, I want to upload the image to s3 and then save the image location to the database asynchronously. Some ideas:

  • POST directly to Amazon s3, and on success POST the image location to the database

However I’m not sure how to deal with authenticated access to s3 without revealing sensitive s3 keys.

Also, how could I guarantee a unique name for the new image file?

  • Somehow serialize the image data, POST it as a string with ajax

The server would then put in the s3 bucket, save the location, etc. Can the image data be properly serialized and remade into an image? I know you can display preview images using FileReader, so potentially I could get the image data using it.


Please let me know if one of the above methods could work or if there is a simple way to make something like this work:

$('#file-upload').change(function() {
  // Asynchronously get image on amazon s3 and saved in the database
});

Should be possible, but all of the examples I’ve seen are very much tied to user interfaces with plugin solutions.

  • 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-17T10:11:19+00:00Added an answer on June 17, 2026 at 10:11 am

    Forgot about this question! Got it working by preventing normal form submission like so:

    var path = $('#form').attr('action');
    $('#form').submit(function(evnt) {
      // stop normal submission
      evnt.preventDefault();  
    
      // POST it asynchronously
      var formData = new FormData(this);
      $.ajax({
        url: path,
        type: 'POST',
        data: formData,
        cache: false,
        contentType: false,
        processData: false
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know next to nothing about JQuery, and find most of my solutions on
I have a little problem about using jQuery (I really do not know jQuery
I know about http://www.upcdatabase.com/ , but it's quite incomplete. Where popular mobile apps getting
I know about primitives and objects living on the heap, but how does the
I know about map/reduce alghoritm and its use. It's using functions that are called
I know about the ADODB.Stream object . But what I really want is a
I know about Options->Fonts and Colors. But there is no option for F# strings(i
I know about Allow Triggers to Fire Others server setting that allows the action
I know about the WebRequest and the WebResponse objects. The problem is that I
I've integrated JQuery File Upload into a Java Spring application. The returned JSON is

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.