Project

General

Profile

« Previous | Next » 

Revision 3513

Added by barteau about 17 years ago

Some minor code cleanup.

View differences:

lib/style/common/ClientViewHelper.jspx
17 17
    </jsp:declaration>
18 18
    
19 19
    <jsp:scriptlet>
20
        sizeLimit = (new Integer(MetaCatUtil.getOption("datafilesizelimit"))).intValue();
21 20
        clientHelper = ClientViewHelper.clientViewHelperInstance(request);
22 21

  
23 22
        contentType = request.getContentType();
......
25 24
        if (contentType != null &amp;&amp; contentType.contains("multipart/form-data")) {
26 25
            //*** Process request here if a file update.
27 26
            //*** Init the MultipartParser.
27
            sizeLimit = (new Integer(MetaCatUtil.getOption("datafilesizelimit"))).intValue();
28 28
            multipartParser = new MultipartParser(request, sizeLimit * 1024 * 1024);
29 29
            message = clientHelper.handleFileUpdate(multipartParser);
30 30
        } else {
31
            //*** Process request here if a delete.
32 31
            message = clientHelper.clientRequest(request, response);
33 32
        }
34 33
        newUrl = clientHelper.makeRedirectUrl();

Also available in: Unified diff