Skip to main content
deleted 84 characters in body
Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

We have a store where we sell downloadable products only (video files). Since it's mostly large files we don't use the Magento uploader but put the files on the server via FTP and then edit the database for the correct path. This has worked great so far.

Now we have files that are larger than 2GB, we use the same process, but the files are not recognized by magento meaning the backend doesn't show the files in the download information tab in product backend. Consequently the product can not be sold and or downloaded by customer.

Files up to 1.999999999999 GB1.999999999999 GB work just fine so I guess it's not related to max_file_uploads in php.ini which is set way lower anyway.

Now in lib/Zend/Validate/FileSize.php I found

 // limited to 2GB files
        $size += @filesize($files);
        $this->_size = $size;
        if (($max !== null) && ($max < $size)) {
            if ($this->useByteString()) {
                $this->_max  = $this->_toByteString($max);
                $this->_size = $this->_toByteString($size);
                $this->_throw($file, self::TOO_BIG);
                $this->_max  = $max;
                $this->_size = $size;
            } else {
                $this->_throw($file, self::TOO_BIG);
            }

But i can't find where to set the 2GB Limit. How can I increase the allowed file size?

We have a store where we sell downloadable products only (video files). Since it's mostly large files we don't use the Magento uploader but put the files on the server via FTP and then edit the database for the correct path. This has worked great so far.

Now we have files that are larger than 2GB, we use the same process, but the files are not recognized by magento meaning the backend doesn't show the files in the download information tab in product backend. Consequently the product can not be sold and or downloaded by customer.

Files up to 1.999999999999 GB work just fine so I guess it's not related to max_file_uploads in php.ini which is set way lower anyway.

Now in lib/Zend/Validate/FileSize.php I found

 // limited to 2GB files
        $size += @filesize($files);
        $this->_size = $size;
        if (($max !== null) && ($max < $size)) {
            if ($this->useByteString()) {
                $this->_max  = $this->_toByteString($max);
                $this->_size = $this->_toByteString($size);
                $this->_throw($file, self::TOO_BIG);
                $this->_max  = $max;
                $this->_size = $size;
            } else {
                $this->_throw($file, self::TOO_BIG);
            }

But i can't find where to set the 2GB Limit. How can I increase the allowed file size?

We have a store where we sell downloadable products only (video files). Since it's mostly large files we don't use the Magento uploader but put the files on the server via FTP and then edit the database for the correct path. This has worked great so far.

Now we have files that are larger than 2GB, we use the same process, but the files are not recognized by magento meaning the backend doesn't show the files in the download information tab in product backend. Consequently the product can not be sold and or downloaded by customer.

Files up to 1.999999999999 GB work just fine so I guess it's not related to max_file_uploads in php.ini which is set way lower anyway.

Now in lib/Zend/Validate/FileSize.php I found

 // limited to 2GB files
 $size += @filesize($files);
 $this->_size = $size;
 if (($max !== null) && ($max < $size)) {
     if ($this->useByteString()) {
         $this->_max  = $this->_toByteString($max);
         $this->_size = $this->_toByteString($size);
         $this->_throw($file, self::TOO_BIG);
         $this->_max  = $max;
         $this->_size = $size;
     } else {
         $this->_throw($file, self::TOO_BIG);
     }

But i can't find where to set the 2GB Limit. How can I increase the allowed file size?

Source Link

Downloadable products >2GB not displayed in backend - how to increase allowed file size

We have a store where we sell downloadable products only (video files). Since it's mostly large files we don't use the Magento uploader but put the files on the server via FTP and then edit the database for the correct path. This has worked great so far.

Now we have files that are larger than 2GB, we use the same process, but the files are not recognized by magento meaning the backend doesn't show the files in the download information tab in product backend. Consequently the product can not be sold and or downloaded by customer.

Files up to 1.999999999999 GB work just fine so I guess it's not related to max_file_uploads in php.ini which is set way lower anyway.

Now in lib/Zend/Validate/FileSize.php I found

 // limited to 2GB files
        $size += @filesize($files);
        $this->_size = $size;
        if (($max !== null) && ($max < $size)) {
            if ($this->useByteString()) {
                $this->_max  = $this->_toByteString($max);
                $this->_size = $this->_toByteString($size);
                $this->_throw($file, self::TOO_BIG);
                $this->_max  = $max;
                $this->_size = $size;
            } else {
                $this->_throw($file, self::TOO_BIG);
            }

But i can't find where to set the 2GB Limit. How can I increase the allowed file size?