According to EsuHelpers.php and public function createObjectFromFile, there is a comment highlighted currently fails on file size > 2GB, is this still valid?
We are working on PHP version's API to support for file size upload >2GB, please share your experience is PHP able to support?
public function createObjectFromFile( $file, $acl = null, $metadata = null ) {
$fd = @fopen( $file, 'rb' );
if( $fd === false ) {
throw new EsuException( "Could not open file \"$file\"" );
Thanks Jason for sharing this, am running Ubuntu 64-bit and should be fine, also tested and returned a 5.0E+19 result from the test code copied from reference PHP manual.
JasonCwik
281 Posts
788
1
Posted March 13th, 2013 12:00
If you're running 64-bit PHP, you should be OK. However, this problem still exists in 32-bit PHP. See the warning in the PHP manual:
http://php.net/manual/en/function.filesize.php