[fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread Leonardo M . Ramé

Hi, I'm looking at httpdefs.pp file from FCL-Web and found that it handles 
multipart/form-data. I've been using a 3rd party parser for this kind of data, 
but it lacks of a good method of parsing large file uploads.

My question is: ProcessMultipart method, handles the parsing in chunks of data, 
instead of loading the whole data into memory?.

Thanks in advance,
Leonardo.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread ABorka
At the moment, it loads the whole content into a stream for processing 
line by line.


It is possible to create a patch to not do processing (exception, error 
message, trigger an event handler, etc.) if the ContentLength exceeds a 
specified size.



Leonardo M. Ramé wrote:

Hi, I'm looking at httpdefs.pp file from FCL-Web and found that it handles 
multipart/form-data. I've been using a 3rd party parser for this kind of data, 
but it lacks of a good method of parsing large file uploads.

My question is: ProcessMultipart method, handles the parsing in chunks of data, 
instead of loading the whole data into memory?.

Thanks in advance,
Leonardo.


  
___

fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal