Interface UploadedFile


  • public interface UploadedFile
    Represents an uploaded file that is temporarily stored on the server.
    • Method Detail

      • getFile

        File getFile()
        Returns the File that currently holds the uploaded file. Note that this may be a temporary file for either the duration of the request or the session.
        Returns:
        the File that currently holds the uploaded file
      • getOriginalFilename

        String getOriginalFilename()
        Returns the original filename. This is typically the filename on the clientside computer, but this is not always the case.
        Returns:
        the original filename
      • getContentType

        String getContentType()
        Returns the content type. This is typically the content type as determined by the client (browser), but it might as well be empty or incorrect.
        Returns:
        the content type
      • getSize

        long getSize()
        Returns the size of the file in bytes.
        Returns:
        the size of the file in bytes