[Catalyst] size limit on file uploads
jshirley at gmail.com
Tue Jul 10 22:20:59 GMT 2007
On 7/10/07, Jim Spath <jspath at pangeamedia.com> wrote:
> I would like to place a maximum file size limit on uploads, but am not
> quite sure how to go about this in Catalyst.
> I've done this in CGI scripts by reading in chunks of the file until I
> hit some size limit, but couldn't find anything in the Catalyst docs.
> - Jim
A better approach would be to configure the webserver to do this, that
way you aren't tying up your application.
As an example, if you use Apache simply do:
J. Shirley :: jshirley at gmail.com :: Killing two stones with one bird...
More information about the Catalyst