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 :) Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.