Package ubic.gemma.web.util.upload
Class FileUploadUtil
- java.lang.Object
-
- ubic.gemma.web.util.upload.FileUploadUtil
-
public class FileUploadUtil extends Object
Utility methods for uploading files.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description FileUploadUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
copyUploadedFile(javax.servlet.http.HttpServletRequest request, String key)
static File
copyUploadedFile(org.springframework.web.multipart.MultipartFile multipartFile, javax.servlet.http.HttpServletRequest request)
static File
copyUploadedInputStream(InputStream is)
static String
getContextUploadPath()
static String
getUploadPath()
-
-
-
Method Detail
-
copyUploadedFile
public static File copyUploadedFile(javax.servlet.http.HttpServletRequest request, String key) throws IOException
- Throws:
IOException
-
copyUploadedFile
public static File copyUploadedFile(org.springframework.web.multipart.MultipartFile multipartFile, javax.servlet.http.HttpServletRequest request) throws IOException
- Throws:
IOException
-
copyUploadedInputStream
public static File copyUploadedInputStream(InputStream is) throws IOException
- Throws:
IOException
-
getContextUploadPath
public static String getContextUploadPath()
-
getUploadPath
public static String getUploadPath()
-
-