For ease and speed we FTP’d up a selection of files, 70 in total (.jpg, .zip, .mov) to a directory on our server. File sizes for these files range from 10KB up to 1GB.
We gave the directory 777 permissions and set it up in EE as an upload directory, making sure to leave the ‘Allowed File Types’ option set to ‘All file types’ and leaving the ‘Maximum file size’ field left blank.
We then used the ‘Synchronize’ button on the Upload Preferences Page and watched the progress bar run to the end, and the page then display a summary of the synchronization process, indicating that no errors were found and that all 70 files had synchronized successfully.
When we viewed the File Manager page however we noticed that only about a third of the files were present (we also check the exp_files table just to be sure).
Our debugging steps:
1. Check all the file mime types are accepted in the /system/expressionengine/config/mimes.php file – they were all there.
2. Check if only the smallest files had records generated? – A 1GB file had a record generated as well as a 550MB file and a 100KB file. So the problem doesn’t appear to related to the filesize.
3. Do only certain types of file have records generated? – records were made for all 3 types of file .zip, .jpg, .mov
4. Is the PHP script timing out? – We upped the max_execution_time to 5 minutes (300 seconds)
5. Is it only happening on a live server? – We found the same on a local server environment
Our server has these PHP.INI settings:
max_execution_time 300
memory_limit 500MB
upload_max_filesize 500MB
post_max_size 500MB
Does anyone have an idea where to look next for a solution?
Thanks,
Bh