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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:22:08+00:00 2026-05-25T00:22:08+00:00

The following code works perfectly. My only concern is that I wanna convert below

  • 0

The following code works perfectly. My only concern is that I wanna convert below to AJAX/alternative, so that it doesn’t need to refresh the whole page to submit this request.

If possible, to also include loading progress bar etc.

<form action="{{ upload_url }}" method="POST" enctype="multipart/form-data">

        Upload File: <input type="file" name="file"> <br> 
        <input type="submit" name="submit" value="Submit"> 

        <input type="hidden" name="data1" value="{{ data1 }}">
        <input type="hidden" name="data1" value="{{ data2 }}">

</form>
  • 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-25T00:22:08+00:00Added an answer on May 25, 2026 at 12:22 am

    Take a look at some JS solutions for AJAX upload – specifically, Plupload can be hooked up to work with the App Engine blobstore, giving you multiupload support, AJAX upload, and options for upload widgets/progress bars/etc.

    In fact, @NickJohnson has a full blog post guiding you through the steps.

    The gist of it is:

    1) Download and install Plupload

    2) Create a handler that returns a generated upload URL. Something like this:

    from google.appengine.ext import webapp
    from google.appengine.api import blobstore
    
    class BlobstoreURLResponder(webapp.RequestHandler):
    
        """ Mapped to the URL /get_upload_url """
    
        def get(self):
            self.response.headers['Content-Type'] = 'text/plain'
            self.request.out.write(blobstore.create_upload_url('/blobstore/passthrough'))
    

    3) Hook up Plupload to get a blob upload URL before uploading a file

    uploader.bind('UploadFile', function(up, file) {
        $.ajax({
            url: '/get_upload_url',
            async: false,
            success: function(data) {
              up.settings.url = data;
            },
        });
    

    For more detailed instructions, take a look at that blog post. Nick has an awesome walkthrough that definitely helped me get set up with Plupload + Blobstore.

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

Sidebar

Related Questions

I have the following code that works perfectly. It allows the user to 'like'
The following code works perfectly. public class StaticClass { public static void main(String[] args)
I have the following code which works perfectly, but I want to allow access
The following code works & runs perfectly. public class Complex { private int real,
In the following code, I have determined that everything works, up until [tableView reloadData]
Is there a way which works? Of course the following code doesn't work: :-)
Although the program works perfectly fine, my professor mentioned that the following is a
The following code works fine in browsers other than IE. In IE, only the
The following code works fine: person = {:a=>:A, :b=>:B, :c=>:C} berson = {:a=>:A1, :b=>:B1,
The following code works as expected on CentOS and Ubuntu O/s but not on

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.