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 PathcopyUploadedFile(javax.servlet.http.HttpServletRequest request, String key, Path uploadDir) static PathcopyUploadedFile(org.springframework.web.multipart.MultipartFile multipartFile, javax.servlet.http.HttpServletRequest request, Path uploadDir) static PathcopyUploadedInputStream(InputStream is, Path uploadDir) static PathgetUploadedFile(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
-