public interface IUploadFileServletPlugin
IContentGenerator
.Modifier and Type | Method and Description |
---|---|
String |
getFileExtension()
The file extension to append to the randomly generated filename resulting from the file upload.
|
long |
getMaxFileSize()
The maximum permitted upload file size in bytes
|
long |
getMaxFolderSize()
The maximum number of files allowed in the target folder.
|
String |
getTargetFolder()
A path where the uploaded files will be saved, relative to the solution path.
|
void |
onSuccess(String pathToFile,
javax.servlet.http.HttpServletResponse response)
A callback invoked upon successful file upload.
|
String getTargetFolder()
long getMaxFileSize()
long getMaxFolderSize()
String getFileExtension()
void onSuccess(String pathToFile, javax.servlet.http.HttpServletResponse response)
UploadFileServlet
can do whatever it needs to with the
repsonse which will be the actual servlet response.pathToFile
- the absolute path to the file successfully uploadedresponse
- the servlet response when the file upload succeedesCopyright © 2021 Hitachi Vantara. All rights reserved.