Really large uploads may well require special handling and that special handling is likely to be application specific. (For example one might want to use a SAX parser or merely copy the data to holding area and let a process on a non-webserver machine process the file.) I am not concerned with such edge cases.

For the purposes of my discussion we can assume that, say 5M, is a reasonable maximum file size. The modules that I am comparing with do slurp the entire file into memory. And by only providing a file handle they force the caller to do it more than once.


Michael Peters wrote:
On 09/19/2010 06:07 PM, Nicholas Bamber wrote:

That's the approach I am taking at the moment. Any thoughts?

This will make it impossible to use for large uploads because you'll be slurping everything into memory.


#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to