PDF JPG PNG. with clear reformat using the part the bytes will fit into..
With issues small than 2MB it might return number to the spec of filesize part of PHP....
Upload get-filesize-shortcode folder to the wp-content plugins directory.
Activate the plugin through 'Plugins in WordPress...
I'm using Toolset Types plugin for collecting attachments to the post.
The plugin gives URL of attachment.
I needed to display the number of attachment in template.
Other places I looks we needed ID of the attachment from the DB and it was hard and SQL-heavy way to query the directory to find ID from the URL.
This plugin accomplishes the service without needing to recheck the I rechecked the plugin code. no db lookup....
Browse the code recheck out SVN repository or subscribe to the development log RSS....
Read more