On Friday 21 February 2003 11:56 am, Michiel Meeuwissen wrote:
> Rob Vermeulen <[EMAIL PROTECTED]> wrote:
> > Hi developers,
> >
> > In HttpPost there is a variable that defines the length of files that
> > can be uploaded.
> > It should be nice if you are able to configure this variable.
> > The big question is where to configure such variables, because util
> > classes are not really having configuration files.
> >
> > I would suggest to put this variable in the mmbaseroot.xml configuration
> > file, but what do you think about it ?
>
> The trouble if of course that HttpPost has basicly nothing to do with
> MMBase, so such a configuration would be a little odd.
>
> Could it not be a parameter of the HttpPost constructor, and then be
> configured/set by the the user of the class?
>
> Generally, configuration of 'utils' should perhaps be under config/util?
Yep I agree
I'm currenlty running the editwizards via rmmci(they take so much memory)
That means that such configuration is realy a util since mmbaseroot should not
even be started (in my case) but I still need the upload.
how about adding maxsize to the constructor of http post
(so that i can have differen sizes for attachement and images). perhaps even
use nodemanager.getField("handle").getSize() kind of stuff?