Class AsynchronousUploadApp

  • All Implemented Interfaces:
    fr.paris.lutece.portal.web.xpages.XPageApplication, java.io.Serializable

    public class AsynchronousUploadApp
    extends fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
    Upload application
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doRemoveAsynchronousUploadedFile​(javax.servlet.http.HttpServletRequest request)
      Removes the uploaded fileItem.
      void doRetrieveAsynchronousUploadedFile​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Get the uploaded fileItem.
      java.lang.String getMainUploadJs​(javax.servlet.http.HttpServletRequest request, java.lang.Boolean bContext)
      Get the main upload JavaScript file.
      • Methods inherited from class fr.paris.lutece.portal.util.mvc.xpage.MVCApplication

        getPage
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsynchronousUploadApp

        public AsynchronousUploadApp()
    • Method Detail

      • getMainUploadJs

        public java.lang.String getMainUploadJs​(javax.servlet.http.HttpServletRequest request,
                                                java.lang.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 request
        bContext - True if front / False if admin
        Returns:
        The content of the JavaScript file
      • doRemoveAsynchronousUploadedFile

        public java.lang.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 request
        response - the response