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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:56:25+00:00 2026-06-11T06:56:25+00:00

I am working on a Pylons 1.0 project using apache with mod_wsgi. Ineed it

  • 0

I am working on a Pylons 1.0 project using apache with mod_wsgi. Ineed it to work with large POST and GET requests. For the GET requests I can just take the data source (file on disk usually) and read it and yield to the Pylons layer to stream the data back to the user. I also know that I can use mmap with urllib2 to stream data requests to other services.

However for POST requests to my service how do I stream the request to disk so as to not overwhelm my memory usage when someone uploads a large file? I see req.body_file which may indicate Pylons is already doing this for me. Anyone know if that is the case?

  • 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-11T06:56:28+00:00Added an answer on June 11, 2026 at 6:56 am

    Pylons uses the WebOb project to supply the request and response objects, and it handles file uploads efficiently.

    File upload handling internally is actually delegated to the python stdlib cgi module, which uses temporary files to handle uploads.

    Ultimately, this is also due to the underlying WSGI standard, which specifies that the request input is a stream.

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

Sidebar

Related Questions

I'm working on my first Pylons project using SQLalchemy and sqlite. I'd like to
I'm trying to setup Pylons (1.0) with Apache mod_wsgi. Everything works fine with mod_wsgi
Using Pylons verson 1.0: Working on the FormDemo example from the Pylons book: http://pylonsbook.com/en/1.1/working-with-forms-and-validators.html
I'm working on an application using Pylons and I was wondering if there was
i had setup Pylons v0.9.7, and created a project using genshi. I tried to
I'm currently working on a quite small project. I'm basing my work on smtpd.py
I am working with Prototype while using the pylons framework and trying to make
I am working on a Pylons app that runs on top of Apache with
I'm working on a Pylons-based web app. Because I am sane, I am using
I'm working on a fairly simple Pylons 0.9.7 application. How do I tell, in

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.