Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

httpdefs.pp multipart/form-data

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I'm 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.

Reply by email

ABorka
to Leonardo M. Ramé

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 13 lines
Hi, I'm 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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email