gnome Posted November 21, 2012 Share Posted November 21, 2012 Hi I'm having trouble adding PDFs to my page. They are large files - up to 50Mb. They appear to be failing - the progress bar gets stuck on 99%. I have tried adding upload_max_filesize = 100M post_max_size = 100M to php.ini, but no luck. Has anyone else had this and found a solution? Thanks! Link to comment Share on other sites More sharing options...
apeisa Posted November 21, 2012 Share Posted November 21, 2012 Please, see this topic (there are few other server settings that needs to be adjusted): Link to comment Share on other sites More sharing options...
gnome Posted November 21, 2012 Author Share Posted November 21, 2012 apeisa, thanks. I've tried what they suggest - still not able to upload a 25MB PDF! Link to comment Share on other sites More sharing options...
ryan Posted November 21, 2012 Share Posted November 21, 2012 Your PHP memory limit may be a factor. You might have it set to 32 or 64. I'd suggest bumping it up to 256. Link to comment Share on other sites More sharing options...
mike77 Posted September 26, 2013 Share Posted September 26, 2013 When I'm uploading a bigger file (90Mb for example) it stops on 99% or 100% and freezes. I have done all PHP configuration required. What could be the problem? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted September 26, 2013 Share Posted September 26, 2013 Can you specify the settings you've done? Link to comment Share on other sites More sharing options...
mike77 Posted September 26, 2013 Share Posted September 26, 2013 Hi Martijn, Well I altered php.ini like this: upload_max_filesize = 150M post_max_size = 150M memory_limit = 128M max_execution_time = 120 max_input_time = 120 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted September 26, 2013 Share Posted September 26, 2013 I'm by far not an expert at this. But it seems to me that memory limit should at least double your 90Mb. Next to that max_input_time is way to less if you asked me. Our internet connection is not that great. It would take 12 minutes (720 seconds) for us to upload 90Mb if there's no interuption 1 Link to comment Share on other sites More sharing options...
mike77 Posted September 26, 2013 Share Posted September 26, 2013 Thanks for suggesting to push memory_limit higher. max_input_time is no matter in my case because Im working on localhost and the upload is quite fast. I must check it on live server though. Thanks again Link to comment Share on other sites More sharing options...
titanium Posted September 26, 2013 Share Posted September 26, 2013 Did you take a look at the server logfiles? I bet you will find hints about the problem in "error.log". It Apache does not complain, it's most likely no Apache problem. Link to comment Share on other sites More sharing options...
ryan Posted September 29, 2013 Share Posted September 29, 2013 I think Martijn is right and this really is a memory_limit issue. Especially if that file is an image, as it'll have to be processed to generate a thumbnail too. And once uncompressed for processing, a 90 MB image is going to be quite large. Even if not an image, 128 MB is still too little for this situation. I would bump it to 256. 1 Link to comment Share on other sites More sharing options...
evanmcd Posted August 27, 2015 Share Posted August 27, 2015 Increasing memory to 400MB worked for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now