Wordpress

      30
When I tried lớn upload a plugin for my Wordpress template in wamp 2.0 I got an error:

The uploaded file exceeds the upload_max_filekích thước directive in php.ini

How lớn fix this error?


*

*

We have sầu seen this error at least once if we have used WordPress.When installing a theme, plugin or uploading an image or tệp tin, It has nothing to bởi vì with the theme or plugin. The issue is with our hệ thống settings which limit the maximum form size for uploaded files.

Bạn đang xem: Wordpress

It’s a comtháng error & it can be easily fixed. This error message is an indication of that the tệp tin you are trying to lớn upload is larger than your website host allows (WordPress default file upload form size is 2 MB).

The uploaded tệp tin exceeds the upload_max_filesize directive sầu in php.ini

Solution:

A solution is easy, need to lớn increase the file kích cỡ upload limit.

If using WordPress on a local machine using XAMPP, we will find the php.ini in the following locations.Windows: C:/xampp/php/php.ini

Open the php.ini file. Find these lines in the php.ini file & replace it following numbers

upload_max_filekích cỡ = 64MSave sầu the changes và refresh your website và try uploading the tệp tin again. You will now get success.


Share
Improve sầu this answer
Follow
answered Sep 29 "18 at 10:21
*

Udhav SarvaiyaUdhav Sarvaiya
7,1961111 gold badges4242 silver badges5353 bronze badges
1
Add a comment |
trăng tròn
Seeing as though you"ve mentioned WAMPhường, I"m going to assume you can edit the php.ini file?

If you left cliông chồng on the WAMPhường. inhỏ in the status bar, select the PHP. menu & then cliông chồng on the php.ini file in that menu. Just open it in Notepad is fine.

Then in Notepad, do a tìm kiếm (CTRL+F) for "upload_max_filesize", & then you can change the value that is mix there.

I don"t rethành viên what the mặc định is, but for mine, I have sầu it mix to "200M" (without the quotes). This means 200mb.

Xem thêm: Cơ Hội Việc Làm Của Nhân Viên Phát Triển Thị Trường Là Gì, Chiến Lược Phát Triển Thị Trường Là Gì

Save the file, cđại bại it, and then restart WAMPhường.

You should then be right khổng lồ upload your plugin


Share
Improve this answer
Follow
answered May 1 "16 at 5:đôi mươi
*

DennoDenno
1,65433 gold badges1414 silver badges2525 bronze badges
1
Add a comment |
8
In Wamp > PHPhường > php.ini file, put or edit these lines, & then restart your Wamp server.

post_max_kích cỡ = 750M upload_max_filesize = 750M max_execution_time = 5000max_input_time = 5000 memory_limit = 1000M
Share
Improve sầu this answer
Follow
edited Feb 21 "18 at 4:38

*

Pang
8,688144144 gold badges7979 silver badges113113 bronze badges
answered Dec 20 "17 at 10:37
Hasnain MehmoodHasnain Mehmood
35744 silver badges44 bronze badges
0
Add a phản hồi |
3
This error is because your upload_max_filekích cỡ variable in php.ini tệp tin is adjusted to lớn 2Mb.. change it khổng lồ 64Mb!! This Clip tutorial will help you fixing your error in 60 seconds!! Hope it helps


Share
Improve sầu this answer
Follow
answered Jan 7 "19 at 16:34
Malik ShahzaibMalik Shahzaib
3111 bronze badge
Add a bình luận |
2
A Solution is easy, you just want to lớn add plugin in your WordPress.

Download your .zip tệp tin of plugin.Extract the .zip tệp tin.Now, upload the extracted thư mục to lớn ../wp-content/plugins/ location.Go to lớn the Installed Plugins page in WordPress, Now you can see the plugin is there, which you have recently uploaded.Finally, clichồng activate liên kết.
Share
Improve this answer
Follow
answered Nov 30 "18 at 7:30
MansiManham
2111 bronze badge
Add a phản hồi |
2
I use MAMP. To locate the "php.ini" file, if you also use MAMPhường, the way Is as follows:

Go khổng lồ the thư mục location where the MAMP is installed. For example, "C:MAMP" Is the folder location of MAMP.Go to "conf" thư mục.From "localhost:8888/MAMP", you will get "phpinfo" link under PHPhường section. Clichồng on the links & from the directed page, get the version of PHPhường. is installed inkhổng lồ your system.From "conf" folder, go lớn the thư mục with the version of PHP.. you got in the previous step.Go khổng lồ that folder và you will get the required php.ini file.xuất hiện that tệp tin in any text editor và update the info:(memory_limit = 64M, upload_max_filekích cỡ = 128M, post_max_kích thước = 512M)Restart MAMPhường.Then you are good to lớn go for uploading big files into lớn your local server.
Share
Improve sầu this answer
Follow
edited Mar 8 "19 at 6:12
answered Dec 5 "17 at 14:11
Hossain Mahmood TuhinHossain Mahmood Tuhin
69777 silver badges1212 bronze badges
1
Add a bình luận |
1
Find this line in the php.ini file upload_max_filekích thước = 2M và replace it with a higher value (e.g. upload_max_filekích cỡ = 64M)

And restart wamp..!


Share
Improve this answer
Follow
edited Mar 9 "17 at 8:21
Osify
2,0642323 silver badges4040 bronze badges
answered Mar 9 "17 at 7:38
Umashankar ChaudharyUmashankar Chaudhary
1933 bronze badges
Add a phản hồi |
1
Open your xampp software và clichồng on config button in front of apabít option và select php.ini option

Next find this code

upload_max_filesize=2Mand replace with this code

upload_max_filesize=64MNow restart apabịt và mysql & enjoy it


Share
Improve this answer
Follow
answered Mar 2 "19 at 18:06
Sumit Kumar GuptaSumit Kumar Gupta
1,4851515 silver badges1717 bronze badges
Add a comment |
0
Locate the php.ini tệp tin in your local dir. I use Xampp. =>C:Xampp. Now find the line where it says

upload_max_filesize = 2Mvà change this to lớn your desired value.

upload_max_fileform size = 56MRestart all your services and you should be able to lớn upload your new files.


Share
Improve sầu this answer
Follow
answered Apr trăng tròn "17 at 23:51
KrishneilKrishneil
1,1841414 silver badges2424 bronze badges
Add a bình luận |
0
Windows: C:/xampp/htdocs/wordpress_project/.htaccessphp_value upload_max_filekích cỡ 1000Mphp_value post_max_kích thước 2000Mphp_value memory_limit 3000Mphp_value max_execution_time 180php_value max_input_time 180// in over tag of wordpress


Share
Improve sầu this answer
Follow
answered Jul 20 "19 at 23:22
Farhan KhanFarhan Khan
1
Add a comment |

Your Answer


Thanks for contributing an answer khổng lồ Stachồng Overflow!

Please be sure to lớn answer the question. Provide details and nói qua your research!

But avoid

Asking for help, clarification, or responding lớn other answers.Making statements based on opinion; bachồng them up with references or personal experience.

To learn more, see our tips on writing great answers.


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using E-Mail & Password
Submit

Post as a guest


Name
E-Mail Required, but never shown


Post as a guest


Name
E-Mail

Required, but never shown


Post Your Answer Disthẻ

By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy and cookie policy


Not the answer you're looking for? Browse other questions tagged php wordpress or ask your own question.


The Overflow Blog
Featured on Meta
Visit chat
Linked
346
Import tệp tin kích thước limit in PHPMyAdmin
30
overriding upload_max_filesize
-2
How to lớn fix file exceeds the upload_max_size directive in php.ini
Related
4769
Reference — What does this symbol mean in PHP?
1283
“Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
831
How khổng lồ fix “Headers already sent” error in PHP..
2143
How does PHP 'foreach' actually work?
1205
Reference - What does this error mean in PHP?
0
The uploaded tệp tin exceeds the upload_max_filekích cỡ directive in php.ini
1
cpanel The uploaded file exceeds the upload_max_filekích cỡ directive sầu in php.ini
0
Wordpres Error, CentOs server: The uploaded file exceeds the upload_max_fileform size directive sầu in php.ini
Hot Network Questions more hot questions

Question feed
Subscribe to lớn RSS
Question feed To subscribe to this RSS feed, copy & paste this URL into your RSS reader.


lang-php
Stack Overflow
Products
Company
Staông chồng Exchange Network
site design / biểu tượng logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.8.16.39990


Stack Overflow works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Staông chồng Exchange can store cookies on your device và discthảm bại information in accordance with our Cookie Policy.