Code example for CommonsMultipartFile

Methods: getContentTypegetOriginalFilename

0
     * Sets the uploaded file as a CommonsMultipartFile file.  
     *  
     * @param file  The CommonsMultipartFile file.  
     */ 
    public void setFile(CommonsMultipartFile file) {
        setOriginalName(file.getOriginalFilename());
        setMimeType(file.getContentType());
        this.file = file;
    } 
 
    /** 
     * Returns the id of the wmo table in the database. 
     *  
     * @return  The table id. 
     */ 
    public int getTableId() { 
        return tableId;
    } 
 
    /**