Class Uploads


  • public class Uploads
    extends java.lang.Object
    Utilities to handle the upload (Uploadable).
    Since:
    8.6.2
    Author:
    rudyhuang
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRealUpload​(Component comp, java.lang.String upload)
      Gets the real upload setting for client.
      static void parseUpload​(Component comp, java.lang.String upload)
      Parse the setting and update the upload-related attributes with the component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseUpload

        public static void parseUpload​(Component comp,
                                       java.lang.String upload)
        Parse the setting and update the upload-related attributes with the component.
        Parameters:
        comp - this component
        upload - upload setting
      • getRealUpload

        public static java.lang.String getRealUpload​(Component comp,
                                                     java.lang.String upload)
        Gets the real upload setting for client. It would append the default maxsize in webapp configuration if none was given.
        Parameters:
        comp - this component
        upload - upload setting
        Returns:
        upload setting (could be altered)