API Documentation for: 1.0.1
Show:

MediaUtils Class

Namespace: Canteen\Media

Media specific utilities functions. Located in the namespace Canteen\Media.

Item Index

Methods

Methods

filesizeFormat

(
  • bytes
)
String static

Convert number of a number of bytes into a readable filesize format

Parameters:

  • bytes Int

    The number of file bytes

Returns:

String:

The readable filesize format (e.g., '5MB', '100KB')