@ExperimentalApi
public interface UploadedFileManager
| Modifier and Type | Method and Description |
|---|---|
@NotNull UploadedFile |
createFile(@NotNull InputStream inputStream,
@NotNull String fileName,
@NotNull String contentType,
long size)
Creates a file on disk.
|
@NotNull UploadedFile |
createFile(@NotNull org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper requestWrapper,
@NotNull String fileParamName)
Creates a file on disk.
|
long |
getMaximumUploadedFileSizeBytes() |
@NotNull File |
getUploadedFilesDirectory() |
@NotNull @NotNull UploadedFile createFile(@NotNull @NotNull org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper requestWrapper, @NotNull @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 @NotNull UploadedFile createFile(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull String fileName, @NotNull @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 @NotNull File getUploadedFilesDirectory()
long getMaximumUploadedFileSizeBytes()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.