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  | 
managerEMPTY_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)  | 
_getCurrentUserserviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate UploadManager _uploadManager
public UploadAction()
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected String _getUrlForView(Upload upload)
upload - The file uploadedprotected String _getUrlForDownload(Upload upload)
upload - The file uploaded