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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:26:45+00:00 2026-06-02T11:26:45+00:00

Using web2py and Google App Engine, I create on a model file, a field

  • 0

Using web2py and Google App Engine, I create on a model file, a field to upload the image and another one to save its download URL.

Field('logotipo_marca_url', 'upload', uploadfield='logotipo_marca_blob'),
Field('logotipo_marca_blob', 'blob'),    

I order to retrive the image save, I use the default download code from example application:

function download():
    return response.download(request,db)

When I use the image URL inside html IMG tag, the image is displayed within HTML… but if I paste the image on browser, it will be downloaded instead open in browser.

I’ve tried to change the response headers, like “Content-type” and “Content-Disposition” but I had sucess with it.

Q1:
I need that image opens inside the browser.

Q2: And one thing else happens, the image is downloaded with the same original file name it were uploaded… I need change it and a name that I will choose. How can I do that?

  • 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-02T11:26:47+00:00Added an answer on June 2, 2026 at 11:26 am

    Image must have Content-Type=image/jpeg (or other relevant type: png, gif..) in order for browser to treat it like an image. Do not use Content-Disposition, this is in browsers used to declare data as downloadable file.

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

Sidebar

Related Questions

I've just started using web2py with Google AppEngine for an app of mine. For
I am using Web2Py to create a simple app which sends Push notifications through
I am using web2py to write a search engine like app. Is it possible
I've got an Apache2/web2py server running using the wsgi handler functionality. Within one of
I am building an app using Web2py framework... I don't want to have to
I am looking for a guide to migrate Django project to Google App Engine
Any pointers, advice on implementing a REST API on App Engine with Python? Using
I am using webpy framefork. I want to serve static file on one of
I'm implementing a web app using web2py and jQuery. I want to use the
Using the web2py DAL, how do a create a query to select for records

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.