realjumper Posted November 21, 2006 Share Posted November 21, 2006 Hi,My file upload application works fine. I have set the file upload limit in my script as well as in php.ini to 100MB as this is being used in an Intranet environment. Files upload as expected, but large files.....say, over 25MB or so won't upload. Is the file size restricted somewhere else.....like say in Apache?Thanks :) Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/ Share on other sites More sharing options...
hitman6003 Posted November 21, 2006 Share Posted November 21, 2006 Your script may be timing out...100MB takes a while to upload, even on an intranet. You may need to adjust the script run time. Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/#findComment-127750 Share on other sites More sharing options...
realjumper Posted November 21, 2006 Author Share Posted November 21, 2006 Good point, thanks. A 25mb file shouldn't time out though should it? Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/#findComment-127752 Share on other sites More sharing options...
hitman6003 Posted November 21, 2006 Share Posted November 21, 2006 Depends on your network...my home network, with 4 computers and little traffic I could probably get a 50 - 60 MB file in the default 30 seconds. At work, where there's 3000+ computers on the network, probably more like 20-25. Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/#findComment-127754 Share on other sites More sharing options...
realjumper Posted November 21, 2006 Author Share Posted November 21, 2006 The network of some 600 machines here is pretty fast....fibre optic blah. blah, blah....but the file upload is failing after only 10-15 seconds or so....which is well short of the 30 second limit in the ini file. Hmmmm Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/#findComment-127758 Share on other sites More sharing options...
realjumper Posted November 21, 2006 Author Share Posted November 21, 2006 I got it!!! The answer was that the post_max_size in php.ini also needs to be set at 100M as POST in the method the form uses to POST the data. So I set post_max_size = 100M AND upload_max_filesize = 100M and now everything is fine :) Link to comment https://forums.phpfreaks.com/topic/27932-file-upload-question-phpini/#findComment-127777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.