Class UploadUtil


  • public class UploadUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UploadUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void restrictMIMEType​(org.zkoss.util.media.Media media)
      check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
      static void restrictMIMEType​(org.zkoss.zk.ui.event.UploadEvent event)
      check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
      • Methods inherited from class java.lang.Object

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

      • UploadUtil

        public UploadUtil()
    • Method Detail

      • restrictMIMEType

        public static void restrictMIMEType​(org.zkoss.zk.ui.event.UploadEvent event)
        check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
        Parameters:
        event - event object which encapsulates the uploadevent
      • restrictMIMEType

        public static void restrictMIMEType​(org.zkoss.util.media.Media media)
        check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
        Parameters:
        media - MIMETYPE of the uploaded media file