Displaying 'unknown' for file type and file size
-
I don’t know if anyone else had this problem, but underneath all of documents, the text for file size and file type always read as unknown:
(Download, Unknown).
I partially resolved the issue; I replaced the line of code reading:
$dltext = str_replace( "%SIZE", gde_format_bytes( $status['fsize'] ), $dltext );
with
$dltext = str_replace( ", %SIZE", $status['fsize'] ), $dltext );
Now, all of my documents show the appropriate file type, but I have removed file size:
(Download, PDF)
I messed around with a few different options for displaying the size, but what I came with either displayed “%SIZE” after file type for everything, caused a fatal error, or left a blank space. I chose the blank space, but I would still like to display file size if anyone has a suggestion. My website is growingwildnyc.org.
https://www.ads-software.com/plugins/google-document-embedder/
- The topic ‘Displaying 'unknown' for file type and file size’ is closed to new replies.