public class UploadAction extends AbstractCurrentUserProviderServiceableAction
Action
for uploading a file and store it using the UploadManager
.Modifier and Type | Field and Description |
---|---|
private UploadManager |
_uploadManager |
manager
EMPTY_MAP
Constructor and Description |
---|
UploadAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
_getUrlForDownload(Upload upload)
Get the url for download the uploaded file
|
protected String |
_getUrlForView(Upload upload)
Get the url for view the uploaded file
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
_getCurrentUser
service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private UploadManager _uploadManager
public UploadAction()
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected String _getUrlForView(Upload upload)
upload
- The file uploadedprotected String _getUrlForDownload(Upload upload)
upload
- The file uploaded