Package com.cis.gorecipe.util
Class FileUtil
java.lang.Object
com.cis.gorecipe.util.FileUtil
A utility class for handling file processing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisImage(org.springframework.web.multipart.MultipartFile file)
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
isImage
public static boolean isImage(org.springframework.web.multipart.MultipartFile file)- Parameters:
file- a file that has been uploaded by the user- Returns:
- whether the uploaded file is an image (jpeg, png, bmp, etc.)
-