[ZendTo] Re: Reported Filesizes too small on large files.

Poulton, Stuart W.L. swlp1 at leicester.ac.uk
Thu May 24 11:22:22 BST 2012


No problem.

Thanks for the quick fix, is it available anywhere ?

Stuart.

-----Original Message-----
From: zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] On Behalf Of Jules
Sent: 24 May 2012 10:26
To: ZendTo Users
Subject: [ZendTo] Re: Reported Filesizes too small on large files.

I would say so, yes.
But that's a silly way of calculating the file size (taking what the 
browser told us). So I've just changed the code to get it from the size 
of the file that was actually uploaded instead.
Should get rid of that one.

Cheers for pointing this one out!

Jules.

On 23/05/2012 11:09, Poulton, Stuart W.L. wrote:
> Hi,
>
> I'm seeing large files>4GB reported with the incorrect size. Here is a worked example.
>
> Filesize: 4245MB
>
> Reported size prior to hitting the 'DropOff' button is 4245MB
> Uploaded filesize on filesystem is 4.2G
>
> However, on the pickup page, the reported filesize is 159MB
>
> Data in the database (mysql in this case) is as follows
>
> mysql>  select * from file
>      ->  ;
> +-------+-----+-----------+------------------------------------+---------------+------------------------+---------------------------+
> | rowID | dID | tmpname   | basename                           | lengthInBytes | mimeType               | description               |
> +-------+-----+-----------+------------------------------------+---------------+------------------------+---------------------------+
> |     8 |   8 | phpP9yHDM | SLED-11-SP1-DVD-x86_64-GM-DVD1.iso |     166649856 | application/x-cd-image |                           |
> +-------+-----+-----------+------------------------------------+---------------+------------------------+---------------------------+
> 1 rows in set (0.00 sec)
>
> Am I seeing an 2GB issue with PHP ?
>
> Stuart
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CITP CEng
www.Zend.To

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
  I see it shining plain,
  The happy highways where I went,
  And cannot come again.' - A.E. Houseman

_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto



More information about the ZendTo mailing list