Article

  • 2 years

    2 years

    YetiShare / Core

    1075

Uploading large files not working when using FTP storage

Problem

When using a FTP server for storage, you try to upload a large file and it fails. Smaller files work ok.

Fix

This is an issue with PHP not having access to enough memory to process the request. To fix it add this line at the end of your _config.inc.php file (in the script root folder):

ini_set('memory_limit', '2048M');

You should set this limit to the maximum permitted filesize you're allowing on upload. Note: 2048M may be the maximum on a 32 bit system.