<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Admin panel field display file size</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Admin-panel-field-display-file-size-79137</link>
        <description></description>
        <pubDate>Wed, 20 May 2026 02:47:54 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Admin-panel-field-display-file-size-79137" rel="self" type="application/rss+xml" />

                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232472#post2232472</link>
          <description><![CDATA[<p>Hi</p>
<p>Great now!</p>
<p>Hope the feature could be added in the new release.</p>
<p>Thanks!</p>
<p>Jac</p>]]></description>
          <pubDate>Thu, 21 Nov 2013 19:07:55 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232472#post2232472</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232471#post2232471</link>
          <description><![CDATA[<p>Hi JH, </p>
<p>Note that we don't support custom modifications to the CMS, but give this a try:</p>
<p>Open <span>/cmsAdmin/lib/menus/default/uploadList.php and search for: Filename:</span></p>
<p><span>Add the code in red:</span></p>
<p><code>&lt;?php et('Filename:'); ?&gt; &lt;?php echo htmlspecialchars(pathinfo($row['filePath'], PATHINFO_BASENAME)); ?&gt;<br /><span style="color:#ff0000;">&lt;?php $bytes = @filesize($row['filePath']); ?&gt;</span><br /><span style="color:#ff0000;"> &lt;?php if ($bytes) { echo formatBytes($bytes); } ?&gt;</span></code></p>
<p>Let me know if that works for you.</p>
]]></description>
          <pubDate>Thu, 21 Nov 2013 18:20:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232471#post2232471</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232452#post2232452</link>
          <description><![CDATA[<p>Hi</p>
<p>I am trying to add below code on the file</p>
<p><span>/cmsAdmin/lib/menus/default/uploadList.php</span></p>
<blockquote>
<p>&lt;!--file size --&gt; <br />&lt;?php</p>
<p>// outputs e.g. somefile.txt: 1024 bytes</p>
<p>$filename = '<span style="color:#ff0000;">upload</span>';<br />echo $filename . ': ' . filesize($filename) . ' bytes';</p>
<p>?&gt;<br />&lt;!--file size --&gt;</p>
</blockquote>
<p>Can you kindly tell me which record I can use?</p>
<p>Thanks!</p>]]></description>
          <pubDate>Wed, 20 Nov 2013 10:13:34 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232452#post2232452</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232450#post2232450</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>Without actually writing the code and testing it out, I'm not sure what the code needed would be but you could try adding code to this admin template:</p>
<p>/cmsAdmin/lib/menus/default/uploadList.php</p>
<p>around line 105.</p>
<p>We can also write this code for you through consulting. Probably would take about 30 minutes to write the code and test. If you are interested in getting it done by our consulting team, shoot us an email to consulting@interactivetools.com.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Wed, 20 Nov 2013 09:12:40 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232450#post2232450</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232446#post2232446</link>
          <description><![CDATA[<p>Hi Damon </p>
<p>have no idea how to add the code.</p>
<p>Could you let me know where to modify the code? which file can be modify?</p>

<p>Thanks!</p>

<p>Jac</p>]]></description>
          <pubDate>Wed, 20 Nov 2013 00:07:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232446#post2232446</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232445#post2232445</link>
          <description><![CDATA[<p>Hi JH,</p>
<p>To display the file size of an upload image in the admin, you would need to add code to the upload templates in CMS Builder.</p>
<p>This should work but any admin template file may be changed with a future update so it is a good idea to create your own custom changelog with<br />any changes that you make so they can be redone after upgrading in the future.</p>
<p>You can also output the filesize on the frontend of the size using the PHP filesize function. Here are some links for reference:</p>
<p><a href="http://php.net/manual/en/function.filesize.php" rel="nofollow">http://php.net/manual/en/function.filesize.php</a><br /><a href="http://johnveldboom.com/posts/17/quick-php-function-to-get-file-sizes-in-kb-mb-gb" rel="nofollow">http://johnveldboom.com/posts/17/quick-php-function-to-get-file-sizes-in-kb-mb-gb</a><br /><a href="http://stackoverflow.com/questions/5501427/php-filesize-mb-kb-conversion" rel="nofollow">http://stackoverflow.com/questions/5501427/php-filesize-mb-kb-conversion</a></p>]]></description>
          <pubDate>Tue, 19 Nov 2013 19:19:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232445#post2232445</guid>
        </item>
                <item>
          <title>Admin panel field display file size</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232434#post2232434</link>
          <description><![CDATA[<p>Hi </p>
<p>Please kindly see the attachment.</p>
<p>We have upload feature on our site.</p>
<p>How to display file size on admin panel?</p>

<p>Thanks!</p>]]></description>
          <pubDate>Tue, 19 Nov 2013 08:49:51 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232434#post2232434</guid>
        </item>
              </channel>
    </rss>
  