public class FileUploadUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getOriginalFileName(javax.servlet.http.Part part)
Get the filename of an uploaded file
|
static File |
saveToTempFile(javax.servlet.http.Part part)
Saves an uploaded file to a tempfile with prefix 'molgenis-', keeps the original file extension
|
static File |
saveToTempFolder(javax.servlet.http.Part part)
Save an Uploaded file to the temp folder keeping it original name
|
public static File saveToTempFile(javax.servlet.http.Part part) throws IOException
IOExceptionpublic static File saveToTempFolder(javax.servlet.http.Part part) throws IOException
IOExceptionpublic static String getOriginalFileName(javax.servlet.http.Part part)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.