public class AttachmentHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachmentHelper.ValidationError |
static class |
AttachmentHelper.ValidationResult |
| Constructor and Description |
|---|
AttachmentHelper(XsrfInvocationChecker xsrfChecker,
JiraAuthenticationContext jiraAuthenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
AttachmentHelper.ValidationResult |
validate(javax.servlet.http.HttpServletRequest request,
String filename,
Long size)
Validates the uploaded image.
|
public AttachmentHelper(XsrfInvocationChecker xsrfChecker, JiraAuthenticationContext jiraAuthenticationContext)
public AttachmentHelper.ValidationResult validate(javax.servlet.http.HttpServletRequest request, String filename, @Nullable Long size)
request - where the image data isfilename - filename of imagesize - size of imageCopyright © 2002-2018 Atlassian. All Rights Reserved.