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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:16:14+00:00 2026-05-25T01:16:14+00:00

Previously, my code in the following was working fine and the ajaxSubmit request was

  • 0

Previously, my code in the following was working fine and the ajaxSubmit request was done successfully.

$(document).ready(function() {
            $('#restaurant_photo_upload').submit(function() { 
                var options = { 
                    clearForm: true        // clear all form fields after successful submit
                }; 
                $(this).ajaxSubmit(options);

                return false; 
            });

            $('[name=upload_restaurant_photo_btn]').click(function(){
                alert("Uploading. . . .?");
                $('#restaurant_photo_upload').submit();
            });

The code to handler the post:

class AddRestaurantPhotoHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
    ......
    ......
    ...... 
    self.render(u'restaurant_profile', restaurant=restaurant, restaurant_key=restaurant_key)

Previously, after adding the ajaxSubmit() code instead of normal submit, I was able to get through the process with self.redirect. However, recently, it’s throwing me error, “object has no attribute ‘render’

If using self.render is the only workaround in this case, how do I pass additional query strings or data back to the template?

I’m confused in a sense that, I thought ajax doesn’t need to render the page again.

  • 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-25T01:16:14+00:00Added an answer on May 25, 2026 at 1:16 am

    Currently a BlobstoreUploadHandler requires a redirect so you can pass query strings like this:
    self.redirect("/restaurant_profile/%d/success" % (restaurant.key().id()))

    If then more variables are needed you can save it to the datastore and display it.

    I asked in the google groups why we can’t make a normal render with blobstoreuploadhandler and the answer is that this requirement is removed already on production and the requirement is said the be removed with dev_appserver starting from SDK 1.5.4.

    I’ve deployed a similar upload with plupload that can upload files with jquery and plugin and my javascript for the upload is

      <script type="text/javascript" src="/static/plupload/plupload.full.min.js"></script>
      <script type="text/javascript" src="/static/plupload/jquery.plupload.queue.min.js"></script>
      <script type="text/javascript">
        $(function() {
          uploader = $("#uploader").pluploadQueue({
            runtimes: 'flash,html5,gears,html4',
                    use_query_string: false,
                    multipart: true,
                    flash_swf_url: '/static/plupload/plupload.flash.swf',
                    filters: [],
          }).pluploadQueue();
          uploader.bind('UploadFile', function(up, file) {
            $.ajax({
                url: '/generate_upload_url',
                async: false,
                success: function(data) {
                  up.settings.url = data;
                },
            });
          });
        });
      </script>
    
    • 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 in my CSS file, which isn't working. #home table
I'm trying to get some code working that a previous developer has written. Yep,
I have started working on some code left behind by previous developers, and I'm
I have the following PHP code, which is meant to insert data in the
I have the following code that is applied to a forward and next button.
I wrote a Haskell code which has to solve the following problem : we
I have the following code that populates an array (this is within a loop):
RESOLVED From the developer: the problem was that a previous version of the code
I'm using .NET 2.0, and a recent code change has invalidated my previous Assert.AreEqual
Previously I have asked to strip text from a field and convert it to

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.