Class FileUploadUtil
java.lang.Object
ubic.gemma.web.controller.util.upload.FileUploadUtil
Utility methods for uploading files.
- Author:
- pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
copyUploadedFile
(javax.servlet.http.HttpServletRequest request, String key, Path uploadDir) static Path
copyUploadedFile
(org.springframework.web.multipart.MultipartFile multipartFile, javax.servlet.http.HttpServletRequest request, Path uploadDir) static Path
copyUploadedInputStream
(InputStream is, Path uploadDir) static Path
getUploadedFile
(String filename, Path uploadDir) Obtain the path for a previously uploaded file.
-
Constructor Details
-
FileUploadUtil
public FileUploadUtil()
-
-
Method Details
-
getUploadedFile
Obtain the path for a previously uploaded file. -
copyUploadedFile
public static Path copyUploadedFile(javax.servlet.http.HttpServletRequest request, String key, Path uploadDir) throws IOException - Throws:
IOException
-
copyUploadedFile
public static Path copyUploadedFile(org.springframework.web.multipart.MultipartFile multipartFile, @Nullable javax.servlet.http.HttpServletRequest request, Path uploadDir) throws IOException - Throws:
IOException
-
copyUploadedInputStream
- Throws:
IOException
-