View Full Version : Uploadphoto.php: Inaccurate disk space figures
February 5th, 2009, 05:44 PM
*See screen shot attached please...
The upload photo page gives the space used and available on my account in both kilobytes and bytes. The byte figure is good, but the kb figure is off for both allowed and remaining space, but *not* for used space. It looks quite odd because according to the kb figure I've used four times my allotted space, but at the same time still have most of my allotted space left.
Any idea if this is in fact a bug or if there is a fix for this? Thanks! :)
February 5th, 2009, 09:59 PM
Try redownloading the build and upload uploadphoto.php and see if that helps. There was a bug I fixed earlier a few weeks ago.
February 6th, 2009, 12:22 AM
Thanks for the quick reply Chuck. I just downloaded Photopost Pro 6.2 tonight. I'm using it with vBulletin and after uploading the files and running the upgrade script for 6.2 from 6.11 it still appears the figures are incorrect.
February 6th, 2009, 11:42 AM
Maybe this post?
February 6th, 2009, 12:05 PM
Thanks Chuck! It looks like that helped, but the numbers are still off a tad, but it's so little now I'm not overly concerned about it. Is this a limitation of Photopost or just in general?
February 6th, 2009, 12:18 PM
Do you have a link?
February 6th, 2009, 01:13 PM
Here is what the figures read now after making the changes you mentioned above:
Disk space allowed on your account: 75,000kb (76,800,000 bytes)
Disk space used on your account: 796kb (815575 bytes)
Disk space remaining for your account: 74,204kb (75984425 bytes)
Checking them on a conversion site from kb to bytes tells me that the first figure, "Disk Space Allowed on my Account" is correct, however disk space used on my account looks to be off as well as disk space remaining. According the the kb numbers above the bytes number should be as follows:
Disk space used on your account: 796kb (815104 bytes)
Disk space remaining for your account: 74,204kb (75984896 bytes)
As you can see it's very close to the original bytes figure, but still off a bit.
I suppose you're asking for a link to my gallery? If so, you can view it here:
Main Index - Orbiter Gallery (http://www.orbiter-forum.com/gallery/index.php)
February 6th, 2009, 01:49 PM
Running those through a calculator shows me they are all correct divided by 1024
Remember when you format them to numbers in PHP they will be rounded up or down accordingly. For 796kb we are not going to display 796.4599609735 ;)
February 6th, 2009, 07:14 PM
Ahh...! Now that makes sense. I didn't know that! :)
Thanks again for your help with this Chuck, have a great weekend!
February 6th, 2009, 08:06 PM
Not a problem. Have a good weekend yourself.
February 14th, 2009, 07:27 AM
Chuck - I saw this thread and have downloaded the recent build and uploaded "uploadphoto.php". However the Disk Space Used figure seems to be off by 1000. It is showing bytes instead of Kbytes. See below.
Disk space allowed on your account: 5,000kb (5,120,000 bytes)
Disk space used on your account: 278,164kb (278164 bytes)
Disk space remaining for your account: 4,728kb (4841836 bytes)
February 14th, 2009, 10:52 AM
Please read this post for the actual fix I do not know that Michael has physically updated the build as he is working on the vbGallery beta
February 14th, 2009, 02:42 PM
Chuck - that fixed it. Thanks.
February 14th, 2009, 06:02 PM
Have a good weekend. Let us know if we can assist with anything else.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.