Package com.saperion.ngc.util
Class UploadUtil
- java.lang.Object
-
- com.saperion.ngc.util.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 notstatic void
restrictMIMEType(org.zkoss.zk.ui.event.UploadEvent event)
check if the MIMETYPE of the media file uploaded falls under restrictedMIMETypes or not
-
-
-
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
-
-