Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( WEBSITE = "https://blueimp.github.io/jQuery-File-Upload/" MIN_FILE_SIZE = 1 // bytes // Max file size is memcache limit (1MB) minus key size minus overhead: MAX_FILE_SIZE = 999000 // bytes IMAGE_TYPES = "image/(gif|p?jpeg|(x-)?png)" ACCEPT_FILE_TYPES = IMAGE_TYPES THUMB_MAX_WIDTH = 80 THUMB_MAX_HEIGHT = 80 EXPIRATION_TIME = 300 // seconds // If empty, only allow redirects to the referer protocol+host. // Set to a regexp string for custom pattern matching: REDIRECT_ALLOW_TARGET = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
type FileInfo struct {
	Key          string `json:"-"`
	ThumbnailKey string `json:"-"`
	Url          string `json:"url,omitempty"`
	ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
	Name         string `json:"name"`
	Type         string `json:"type"`
	Size         int64  `json:"size"`
	Error        string `json:"error,omitempty"`
	DeleteUrl    string `json:"deleteUrl,omitempty"`
	DeleteType   string `json:"deleteType,omitempty"`
}
    func (*FileInfo) ValidateSize ¶
func (*FileInfo) ValidateType ¶
 Click to show internal directories. 
   Click to hide internal directories.