Open thenickless opened 2 years ago
Checked: sollte ersetzt werden:
$size = size_format( filesize(get_attached_file($file->ID)), $precision );
https://raw.githubusercontent.com/RRZE-Webteam/rrze-downloads/master/includes/Shortcode.php
https://make.wordpress.org/core/2022/05/02/media-storing-file-size-as-part-of-metadata/
=> when calling the wp_get_attachment_metadata function, developers will easily be able to receive the file size of a selected image without having to call the php function filesize.