Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
UploadFilter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tweekgeek  
View profile  
 More options Aug 4 2006, 10:13 am
From: "tweekgeek" <ja...@tweekedideas.com>
Date: Fri, 04 Aug 2006 07:13:41 -0700
Local: Fri, Aug 4 2006 10:13 am
Subject: UploadFilter
Hey everyone... I've just finished up a filter that might help in the
way of preventing some problems with CP2.2 and file uploads.
Specifically, it's currently possible for a user to tie up all the
available threads with file uploads, preventing other users from
accessing the site. This filter allows a user to set a maximum number
of simultaneous uploads...

In addition to that, since I was playing around with uploads, I decided
to add some functionality to the FieldStorage object used by CP. After
including this filter the FieldStorage object will allow a user to keep
track fo the progress of uploads, enabling a progress bar of sorts to
be implemented (so long as multiple threads are available, of course).
Here's a screen capture of the included sample:

http://www.kepty.com/static/screenshot.jpg

Other features include configurations for file sizes (overriding cp
sizecheck wrappers), uploading time caps, minimum upload speed
requirements, and explicit declaration of areas that accept file
uploads. All of which are well documented in the filter's doc string.
Well, here's the download:

http://www.kepty.com/static/uploadfilter-1.0.tar.gz (filter and sample
implementation)

It might make a good addition to the third-party module list, or,
depending on what you guys think, I personally think it might be good
to include this or something similar (maybe with just the simultaneous
upload limiting) in the cp2.2 code base itself.

As always, feel free to e-mail me (james at tweekedideas dot com), or
catch me in the cp irc: tweekgeek.

James


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Brewer  
View profile  
 More options Aug 4 2006, 12:39 pm
From: "Robert Brewer" <fuman...@amor.org>
Date: Fri, 4 Aug 2006 09:39:06 -0700
Local: Fri, Aug 4 2006 12:39 pm
Subject: RE: [cherrypy-devel] UploadFilter

tweekgeek wrote:
> Hey everyone... I've just finished up a filter that
> might help in the way of preventing some problems
> with CP2.2 and file uploads.

Very nice! I wish I had time at the moment to work this into CP, but I don't. If you'd file a ticket for CP 3 and assign it to me, I'd make sure to address this before CP 3 final. Add the actual .py as an attachment, if you would.

Robert Brewer
System Architect
Amor Ministries
fuman...@amor.org

  winmail.dat
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »