Documentation ¶ Index ¶ Constants type App func (c *App) Before() revel.Result type FileInfo type Multiple func (c *Multiple) HandleUpload() revel.Result func (c *Multiple) Upload() revel.Result type Single func (c *Single) HandleUpload(avatar []byte) revel.Result func (c *Single) Upload() revel.Result Constants ¶ View Source const ( KB int = 1 << (10 * iota) MB GB ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type App ¶ type App struct { *revel.Controller } func (*App) Before ¶ func (c *App) Before() revel.Result type FileInfo ¶ type FileInfo struct { ContentType string Filename string RealFormat string `json:",omitempty"` Resolution string `json:",omitempty"` Size int Status string `json:",omitempty"` } type Multiple ¶ type Multiple struct { App } func (*Multiple) HandleUpload ¶ func (c *Multiple) HandleUpload() revel.Result func (*Multiple) Upload ¶ func (c *Multiple) Upload() revel.Result type Single ¶ type Single struct { App } func (*Single) HandleUpload ¶ func (c *Single) HandleUpload(avatar []byte) revel.Result func (*Single) Upload ¶ func (c *Single) Upload() revel.Result Source Files ¶ View all Source files app.go multiple.go single.go Click to show internal directories. Click to hide internal directories.