\DropzoneFile
Adds helper methods to the core {@link File} object
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class DropzoneFile
extends DataExtension
{
- // methods
- public boolean IsImage()
- public Image_Cached getPreviewThumbnail()
- protected string getFilenameForType()
Hierarchy
Extends
- DataExtension
Methods
protected
- getFilenameForType() — Gets a filename based on the extension and the size
public
- IsImage() — Helper method for determining if this is an Image
- getPreviewThumbnail() — Gets a thumbnail for this file given a size. If it's an Image, it will render the actual file. If not, it will provide an icon based on the extension.