$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>uploads - Issue when uploading past 8MB?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

uploads - Issue when uploading past 8MB?

matteradmin7PV0评论

So I downloaded a plugin that sets your max_file_upload to 250 MB and I set my php.ini to the same. I own server so it is not a server issue - I have many apps that upload very large video files.

When I am trying to upload a file, no matter how large (up to 200MB tested), it shows that the file uploads in the progress bar. If it were going over the upload limit I get an error telling me the file is too big - but this is not the case.

Instead of a second or two after hitting 100% on the progress bar, it times out with "HTTP error". Seems like a memory issue with WP so I added define('WP_MEMORY_LIMIT', '250MB');

Doesn't work. Let me know what else I can do. It is not an issue with the server. When I do phpinfo it shows 250M and I have uploaded many files larger than 8M on other apps on the same server.

Name of the plugin is PBP Increase upload limit. Also when I do not have the plugin on I cannot download big files at all. With the plugin, I can download the file - but when it gets to the "crunching" progression it faults out with the HTTP error.

So I downloaded a plugin that sets your max_file_upload to 250 MB and I set my php.ini to the same. I own server so it is not a server issue - I have many apps that upload very large video files.

When I am trying to upload a file, no matter how large (up to 200MB tested), it shows that the file uploads in the progress bar. If it were going over the upload limit I get an error telling me the file is too big - but this is not the case.

Instead of a second or two after hitting 100% on the progress bar, it times out with "HTTP error". Seems like a memory issue with WP so I added define('WP_MEMORY_LIMIT', '250MB');

Doesn't work. Let me know what else I can do. It is not an issue with the server. When I do phpinfo it shows 250M and I have uploaded many files larger than 8M on other apps on the same server.

Name of the plugin is PBP Increase upload limit. Also when I do not have the plugin on I cannot download big files at all. With the plugin, I can download the file - but when it gets to the "crunching" progression it faults out with the HTTP error.

Share Improve this question edited Apr 24, 2018 at 18:13 Mostafa Soufi 8057 silver badges19 bronze badges asked Jan 13, 2014 at 21:46 STingSTing 5914 gold badges10 silver badges27 bronze badges 1
  • 2 What is the plugin you are using? Have you tried that plugin's support forum? – Dan Commented Jan 13, 2014 at 21:49
Add a comment  | 

2 Answers 2

Reset to default 1

In your php.ini make sure you're changing both of the following lines.

upload_max_filesize = 250M
post_max_size = 250M

If you are using FastCGI as your PHP engine you'll also need to up its limit in Apache. Try adding FcgidMaxRequestLen to your VirtualHost (see http://httpd.apache/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestlen for more info on the directive).

Finally, if you're on NGINX you might need to set

client_max_body_size 20M;

You'll do this under the http section of nginx.conf (see http://wiki.nginx/HttpCoreModule#client_max_body_size for more information)

I had a heck of a time figuring this out because I had WordPress installed on Windows Server 2016 IIS and nearly all instructions and plugins related to hosted Linux installs. I created a short video of the solution you can see here:

https://www.urtech.ca/2018/04/solved-wordpress-on-iis-change-upload-file-size-limit-avoid-http-error/

I hope this helps.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far