Class UploadUtil

java.lang.Object
com.saperion.ngc.util.UploadUtil

public class UploadUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 Details

    • UploadUtil

      public UploadUtil()
  • Method Details

    • 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