2 Aug 12:48
Re: uploadLimit - catching errors
Michael Platzer <michael.platzer <at> knallgrau.at>
2005-08-02 10:48:27 GMT
2005-08-02 10:48:27 GMT
hi hannes,
it works now, thanks! but all other request-parameters are lost, resp. never set, since the error is thrown in helma [upload.parseRequest(request);] before the passed parameters can be set. i took a look at the code, and couldn't think of an easy way of how to circumvent this problem
this implies that handling such an error in an application has to happen in the action itself (and not further down in the processing chain), which is not too nice, but sthg that i can live with.
i guess you don't see a quick solution to this problem either, do you?
thanks again,
michi
Michael Platzer schrieb:
-- DI Michael Platzer technical director -------------------------------------- knallgrau new media solutions gmbh pezzlgasse 7|1, A-1170 wien phone: +43 - 1 - 522 76 37 fax: +43 - 1 - 522 76 38 http://www.knallgrau.at weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog
it works now, thanks! but all other request-parameters are lost, resp. never set, since the error is thrown in helma [upload.parseRequest(request);] before the passed parameters can be set. i took a look at the code, and couldn't think of an easy way of how to circumvent this problem

this implies that handling such an error in an application has to happen in the action itself (and not further down in the processing chain), which is not too nice, but sthg that i can live with.
i guess you don't see a quick solution to this problem either, do you?
thanks again,
michi
Michael Platzer schrieb:
Hannes Wallnoefer schrieb:Ok,it doesn't work yet, but i think you just forgot to read uploadSoftfail in the AppDescriptor-function.
I added a new switch to apps.properties to catch upload errors in
application code. By setting
appname.uploadSoftfail = true
Helma doesn't generate an immedate error response if the file upload
fails. Instead, req.data.helma_upload_error is set and contains a
string describing the error.
Apps need to be changed to work with this feature, so the default
behaviour is still to generate the error page.
Please send me feedback if you test this new feature, I haven't tried it myself.
greets,
michi
_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
-- DI Michael Platzer technical director -------------------------------------- knallgrau new media solutions gmbh pezzlgasse 7|1, A-1170 wien phone: +43 - 1 - 522 76 37 fax: +43 - 1 - 522 76 38 http://www.knallgrau.at weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog
_______________________________________________ Helma-user mailing list Helma-user <at> helma.org http://helma.org/mailman/listinfo/helma-user
RSS Feed