$media->isWritable()

Checks if the file is writable

  • return (boolean)

Example

<?php if($media->isWritable()): ?>
The file is writable
<?php endif ?>