Class AsynchronousUploadApp
- java.lang.Object
-
- fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
-
- fr.paris.lutece.plugins.asynchronousupload.web.AsynchronousUploadApp
-
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,Serializable
public class AsynchronousUploadApp extends fr.paris.lutece.portal.util.mvc.xpage.MVCApplicationUpload application- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsynchronousUploadApp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoRemoveAsynchronousUploadedFile(javax.servlet.http.HttpServletRequest request)Removes the uploaded fileItem.voiddoRetrieveAsynchronousUploadedFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Get the uploaded fileItem.StringgetMainUploadJs(javax.servlet.http.HttpServletRequest request, Boolean bContext)Get the main upload JavaScript file.
-
-
-
Method Detail
-
getMainUploadJs
public String getMainUploadJs(javax.servlet.http.HttpServletRequest request, Boolean bContext)
Get the main upload JavaScript file. Available HTTP parameters are :- handler : Name of the handler that will manage the asynchronous upload.
- maxFileSize : The maximum size (in bytes) of uploaded files. Default value is 2097152
- Parameters:
request- The requestbContext- True if front / False if admin- Returns:
- The content of the JavaScript file
-
doRemoveAsynchronousUploadedFile
public String doRemoveAsynchronousUploadedFile(javax.servlet.http.HttpServletRequest request)
Removes the uploaded fileItem.- Parameters:
request- the request- Returns:
- The JSON result
-
doRetrieveAsynchronousUploadedFile
public void doRetrieveAsynchronousUploadedFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Get the uploaded fileItem.- Parameters:
request- the requestresponse- the response
-
-