MediaItem
- Possible types:
image,file,movieoraudio. - Source: The
sourcefiles will be saved on the server. Note: big images will automatically be downscaled to 3000px width when being uploaded. We do this to prevent memory crashes. - Thumbnails: We use the popular
LiipImagineBundleto generate thumbnails in front- and backend. - Movies: We have a special UI for
youtubeandvimeomovies, which only requires the movie ID.
MediaFolder
MediaFolder <---> contains multiple MediaItem entities
This is purely for your own internal usage in the backend. View MediaFolder entity.
MediaGroup
MediaGroup <---> contains multiple MediaItem entities using MediaGroupMediaItem.
Any custom module entity can have one or more MediaGroup entities. View MediaGroup entity.
class BlogArticle
{
/**
* @var MediaGroup
*/
private $images;
/**
* @var MediaGroup
*/
private $trailers;
}