@ExperimentalApi
public interface UploadedFileManager
Modifier and Type | Method and Description |
---|---|
UploadedFile |
createFile(InputStream inputStream,
String fileName,
String contentType,
long size)
Creates a file on disk.
|
UploadedFile |
createFile(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper requestWrapper,
String fileParamName)
Creates a file on disk.
|
long |
getMaximumUploadedFileSizeBytes() |
File |
getUploadedFilesDirectory() |
@NotNull UploadedFile createFile(@NotNull org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper requestWrapper, @NotNull String fileParamName) throws UploadedFileManagerException
requestWrapper
- the wrapper containing getFile() and getFilesystemName() describing the attachmentfileParamName
- name of form parameter specifying filename (in requestWrapper).UploadedFile
containing details about whereabouts of the created fileUploadedFileManagerException
- iff file upload fails@NotNull UploadedFile createFile(@NotNull InputStream inputStream, @NotNull String fileName, @NotNull String contentType, long size) throws UploadedFileManagerException
fileName
- the source filenamecontentType
- the content type of the passed streamsize
- the size of the passed stream.UploadedFile
containing details about whereabouts of the created fileUploadedFileManagerException
- iff file upload fails@NotNull File getUploadedFilesDirectory()
long getMaximumUploadedFileSizeBytes()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.