Class FileUtil

java.lang.Object
com.cis.gorecipe.util.FileUtil

public class FileUtil extends Object
A utility class for handling file processing
  • 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.)