Class FileUploadUtil


  • public class FileUploadUtil
    extends Object
    Utility methods for uploading files.
    Author:
    pavlidis
    • Constructor Detail

      • FileUploadUtil

        public FileUploadUtil()
    • Method Detail

      • getUploadedFile

        public static Path getUploadedFile​(String filename,
                                           Path uploadDir)
        Obtain the path for a previously uploaded file.
      • copyUploadedFile

        public static Path copyUploadedFile​(org.springframework.web.multipart.MultipartFile multipartFile,
                                            @Nullable
                                            javax.servlet.http.HttpServletRequest request,
                                            Path uploadDir)
                                     throws IOException
        Throws:
        IOException