Package com.saperion.ngc.util
Class UploadUtil
java.lang.Object
com.saperion.ngc.util.UploadUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrestrictMIMEType(org.zkoss.util.media.Media media) check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or notstatic voidrestrictMIMEType(org.zkoss.zk.ui.event.UploadEvent event) check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
-
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
-