I have projectpier installed and php.ini set to allow file sizes up to 128M. A user uploaded a 67M file just fine, but when other users try to download it they get a blank screen. Has anyone seen this? If so, how did you fix it? Thanks.
I have projectpier installed and php.ini set to allow file sizes up to 128M. A user uploaded a 67M file just fine, but when other users try to download it they get a blank screen. Has anyone seen this? If so, how did you fix it? Thanks.
have the same problem. Would love to know the answer.
I believe this is caused by a memory limit setting in php.ini. I tried downloading a large file and had the same issue. I went into /config/config.php and turned on debugging so instead of a white screen I see the actual error. The error was that the script had run out of memory. If you open your php.ini file (your system administrator should know where this is) and increase the "memory_limit" setting to a number larger than twice the size of the largest file you want to download that should take care of it.
I haven't looked at that part of the code in detail, but it would appear that when you click to download a file PP loads the file into memory before sending the file to your browser. I would personally consider this a design flaw and think the download mechanism should be redesigned in a future revision.
The bottom line for now though is you need to increase the memory_limit setting on your server in your php.ini file if you are going to be downloading large files from PP. If you are on a shared hosting account and don't have access to this file you can try inserting this line into /application/models/project files/ProjectFile.class.php, just under the line that reads: function getFileContents()
ini_set("memory_limit","128M");
obviously change 128M to whatever number you need it to be.
Just an idea for best practice.
I don't recommend to use web (http) based upload scripts for big files. File upload process itself is slow and web (http) based solution's are not reliable on uploading big files. Most design companies are using FTP servers for customer file uploads, as daily practice is shown, http based big files uploads isn't very reliable.
Also please note, PHP requires to adjust several settings to get accepted bigger file upload over http with PHP.
_______________________
Pro ProjectPier Support: support@projectpier.tk
Download: ProjectPier GoalPanel SF Edition.