downloads page uses true file sizes

This commit is contained in:
James Shiffer 2020-09-21 11:28:28 -07:00
parent 071428bcf5
commit 3972d96ad9
2 changed files with 14 additions and 1 deletions

View File

@ -35,8 +35,21 @@
<body>
<img width="177" height="112" src="/assets/DownloadCentre.gif">
<div class="dllist">
<cfset filename = expandpath("./downloads/FemboyBanking.exe")>
<cftry>
<cffile file = "#filename#" action = "read" variable = "content">
<cfset sizeKb = Round(Len(content) / 1000)>
<cfcatch type="any">
<cfoutput>
<p>#cfcatch.message#</p>
<p>#cfcatch.detail#</p>
</cfoutput>
</cfcatch>
</cftry>
<h6>FemBanking Desktop Application</h6>
<p><img width="16" height="16" src="/assets/DownloadIcon.gif"> <a href="/downloads/FemboyBanking.exe">Download (36.5 KB)</a></p>
<p><img width="16" height="16" src="/assets/DownloadIcon.gif"> <a href="/downloads/FemboyBanking.exe">Download (<cfoutput>#sizeKb#</cfoutput> KB)</a></p>
</div>
<cfinclude template="../templates/Footer.cfm">

Binary file not shown.