Interface UploadedFile

    • Method Detail

      • getContentType

         getContentType()
        Returns:
        the MIME type specified when the file was uploaded.
      • getFileName

         getFileName()
        Returns:
        the name of the file that was uploaded.
      • getFilePath

         getFilePath()
        Returns:
        the complete path, as reported by the client browser.
      • getSize

        long getSize()
        Returns:
        the size, in bytes, of the uploaded content.
      • getStream

         getStream()
        Returns:
        an input stream of the content of the file.
      • isInMemory

        boolean isInMemory()
        Returns:
        true if the uploaded content is in memory.
      • write

        void  file)
        Writes the content of the file to a known location.
        Parameters:
        file - Location to write file to