Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPress’te Maksimum Dosya Yükleme Boyutu Nasıl Artırılır

Hiç WordPress sitenize bir dosya yüklemeye çalıştınız ve duvara tosladınız mı? İhtiyacınız olan görseli, eklentiyi veya temayı yükleyememek çok sinir bozucu. Okurlarımız sık sık dosya yükleme sorunlarıyla ilgili bizden yardım istiyor çünkü bu sorunlar iş akışınızı yavaşlatabiliyor.

Bazen bu dosya yükleme sınırları beklenmedik bir şekilde medya kitaplığınıza içerik eklemenizi veya ihtiyacınız olan daha büyük eklentileri ve temaları yüklemenizi engelleyebilir. Eliniz kolunuz bağlı kalmak gibi bir şey. Ve bunu nasıl düzelteceğinizi bilmediğinizde daha da can sıkıcıdır!

Ama endişelenmeyin, yardım etmek için buradayız. WordPress’in bu kadar yapılandırılabilir bir platform olmasını ve aynı sorunu çözmenin genellikle birden fazla yolu olmasını seviyoruz.

Bu kılavuzda, WordPress’te maksimum dosya yükleme boyutunu artırmanın en kolay yollarını göstereceğiz. Bu sınırlamaları aşmanızı sağlayacağız, böylece sevdiğiniz şeyi yapmaya geri dönebilirsiniz – web sitenizi çalıştırmak!

How to increase the maximum file upload size in WordPress

WordPress’te Maksimum Dosya Yükleme Boyutu Neden Arttırılmalı?

WordPress barındırma sağlayıcınız, kaydolduğunuzda ve WordPress‘i yüklediğinizde varsayılan bir maksimum dosya yükleme boyutu belirleyecektir. Bu sınırı barındırma sağlayıcınız belirler ve genellikle 2 MB ile 500 MB arasında değişir.

Çoğu WordPress web sitesi sahibi için bu sınır fazlasıyla yeterli olacaktır.

Ancak, yükleme hatalarıyla karşılaşmamak için bu sınırı yükseltmeniz gereken zamanlar olabilir.

Örneğin:

Bununla birlikte, WordPress sitenizdeki maksimum dosya yükleme boyutunu nasıl artırabileceğinizi gösterelim.

Not: Web sitenizde çok sayıda büyük dosya görüntülemenin web sitenizin hızını ve performansını ciddi şekilde yavaşlatabileceğini unutmayın. Bu yüzden genellikle WordPress’e asla video yüklememenizi öneririz.

Çoğu kullanıcı farklı WordPress barındırma kurulumlarına sahip olduğundan, aşağıdakileri ele alacağız:

WordPress’te Maksimum Dosya Yükleme Boyutu Sınırınızı Kontrol Etme

WordPress, görüntüleri veya diğer medyaları yüklerken otomatik olarak maksimum dosya yükleme boyutu sınırını gösterecektir.

Bunu kontrol etmek için WordPress yönetici panelinizde Medya ” Yeni Ekle bölümüne gidin ve WordPress siteniz için maksimum dosya yükleme boyutu sınırını göreceksiniz.

Check current file upload size limit

Artık boyut sınırını nasıl bulacağınızı bildiğinize göre, WordPress’te maksimum yükleme boyutunu nasıl artıracağınızı gösterelim.

Yöntem 1: WordPress Hosting Sağlayıcınızla İletişime Geçin

WordPress’te maksimum dosya yükleme boyutunu artırmanın en kolay yollarından biri WordPress barındırma sağlayıcınıza ulaşmaktır.

Bu, müşteri hizmetleri ekibi için nispeten basit bir görevdir ve birkaç dakika içinde yapılabilir.

Yeni başlayanlar için bu, WordPress’e kod eklemekten ve sunucu dosyalarını düzenlemekten çok daha kolay olabilir.

Bluehost gibi barındırma sağlayıcınızın web sitesine gidin ve oturum açın.

Ardından, ekranın altındaki ‘Sohbet’ simgesine tıklayın. Daha sonra destek personelinden WordPress sitenizdeki dosya yükleme boyutunu artırmasını isteyebilirsiniz.

Clicking the Bluehost live chat support button in the dashboard

Ayrıca hosting hesabınızın kontrol panelinden de desteğe ulaşabilirsiniz.

Yöntem 2: Mevcut bir php.ini dosyası oluşturun veya düzenleyin

Maksimum dosya yükleme boyutunu artırmanın bir başka yolu da php.ini adlı bir dosya oluşturmak veya düzenlemektir. Bu dosya WordPress barındırma ortamınız için birçok ayarı kontrol eder.

Bluehost gibi çoğu WordPress barındırma sağlayıcısı, web sitenizi yönetmenize yardımcı olacak yeni başlayan dostu bir cPanel’e sahiptir.

Web barındırıcınızın bir cPanel panosu varsa, yerleşik araçlar aracılığıyla dosya yükleme boyutunu artırabilirsiniz.

Not: Aşağıdakiler Bluehost cPanel’den alınmıştır. Ancak, çoğu paylaşılan barındırma sağlayıcısı benzer adımlara sahip olacaktır.

Bluehost’ta Hosting sekmesinin altında bir cPanel düğmesi bulacaksınız.

Open cPanel in Bluehost

Bu düğmeye tıkladığınızda cPanel kontrol paneliniz açılacaktır.

Şimdi Yazılım bölümüne gitmeniz ve ‘MultiPHP INI Editor’ seçeneğine tıklamanız gerekiyor.

MuliPHP INI Editor in Bluehost's cPanel

Ardından, ‘upload_max_filesize’ etiketli bölüme gidin ve kutuya yeni bir maksimum dosya boyutu girin.

Ardından, ‘Uygula’ düğmesine tıklayın.

Upload Max Filesize Setting

Alternatif olarak, ‘Editör Modu’ menü sekmesine tıklayabilir ve ardından maksimum dosya yükleme boyutunu doğrudan editörden değiştirebilirsiniz.

Dosya yükleme boyutunuzu artırmak için ‘upload_max_filesize’ bölümünü düzenlemeniz gerekir.

İşiniz bittiğinde, sadece ‘Kaydet’ düğmesine tıklayın.

Change max upload filesize in code editor

Kod Ekleyerek php.ini’yi Düzenleme

Mevcut barındırma sağlayıcınız cPanel seçeneği sunmuyorsa, bu dosyayı manuel olarak düzenlemeniz gerekir.

Bunu yapmak için bir FTP istemcisi veya WordPress hosting kontrol panelinizdeki dosya yöneticisi seçeneğini kullanabilirsiniz.

Eğer paylaşımlı hosting kullanıyorsanız, hosting dizininizde php.ini dosyasını göremeyebilirsiniz. Eğer göremiyorsanız, php.ini adında bir dosya oluşturun ve kök klasörünüze yükleyin.

Ardından, aşağıdaki kod parçacığını dosyaya ekleyin:

upload_max_filesize = 256M
post_max_size = 256M
max_execution_time = 300

‘256M’ sınırını WordPress blogunuz için ihtiyacınız olan dosya boyutuna göre değiştirebilirsiniz.

Yöntem 3: WordPress Temanızın functions.php Dosyasına Kod Ekleyin

Bu yöntem, WordPress temanızdaki functions.php dosyanıza kod eklemeyi içerir.

Dosyayı doğrudan düzenlemek yerine WPCode kullanmanızı öneririz. Web sitenizi bozmadan kod eklemenizi sağlayan en iyi kod parçacıkları eklentisidir.

Bunu daha önce yapmadıysanız, WordPress’te özel kod eklemeye ilişkin başlangıç kılavuzumuza bakın.

Öncelikle ücretsiz WPCode eklentisini yüklemeniz gerekir. Daha fazla ayrıntı için, WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

Etkinleştirmenin ardından Code Snippets ” + Add Snippet bölümüne gitmelisiniz.

Farenizi ‘Özel Kodunuzu Ekleyin (Yeni Snippet)’ seçeneğinin üzerine getirmeniz ve ardından ‘+ Özel Snippet Ekle’ düğmesine tıklamanız gerekecektir.

Add new snippet

Ardından, görünen seçenekler listesinden kod türü olarak ‘PHP Snippet’i seçmeniz gerekir.

Select the PHP snippet option

Aşağıdaki ekranda, yeni snippet’iniz için bir ad girin; bu, kodun ne için olduğunu hatırlamanıza yardımcı olacak herhangi bir şey olabilir.

Ardından, aşağıdaki kod parçacığını kopyalayıp ‘Kod Önizleme’ altına yapıştırabilirsiniz. ‘256M’yi ihtiyacınız olan maksimum dosya boyutuyla değiştirdiğinizden emin olun:

@ini_set( 'upload_max_size' , '256M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'max_execution_time', '300' );
Save Your Custom Snippet in WPCode

Son olarak, üstteki geçişi ‘Etkin’ olarak değiştirin ve ardından ‘Snippet’i Kaydet’ düğmesine tıklayın. Kod artık web sitenizde çalıştırılacaktır.

Yöntem 4: .htaccess Dosyanıza Kod Ekleyin

Maksimum dosya boyutunu artırmanın bir başka yolu da .htaccess dosyasını değiştirmektir. Bu dosya web siteniz için üst düzey yapılandırma ayarlarını kontrol eder.

Bunu yapmak için web sitenizin sunucusuna FTP aracılığıyla giriş yapmanız gerekir. Bunu daha önce yapmadıysanız, yeni başlayanlar için WordPress’e dosya yüklemek için FTP’nin nasıl kullanılacağına ilişkin kılavuzumuza bakın.

Bundan sonra, .htaccess dosyanızı web sitenizin kök klasöründe bulmanız gerekir.

Open .htaccess file

Eğer .htaccess dosyanızı bulamıyorsanız, dosya yöneticiniz veya FTP istemciniz tarafından gizlenmiş olabilir. Daha fazla bilgi edinmek için WordPress sitenizdeki .htaccess dosyasını neden bulamadığınızla ilgili kılavuzumuza bakın.

Ardından, aşağıdaki kod parçacığını .htaccess dosyanıza eklemeniz gerekir:

php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300

Maksimum dosya yükleme boyutunuzu daha da artırmak için ’64M’ değerini istediğiniz boyutla değiştirmeniz yeterlidir.

Yöntem 5: Dosya Yükleme Boyutunu Artırmak için WordPress Eklentisi Kullanın

Maksimum dosya yükleme sınırını artırmanın bir başka yolu da WP Increase Upload Filesize eklentisini kullanmaktır. WordPress’e kod ekleme konusunda rahat değilseniz, bu sizin için iyi bir seçenek olabilir.

Yapmanız gereken ilk şey eklentiyi yüklemek ve etkinleştirmektir. Daha fazla ayrıntı için WordPress eklentisi yükleme kılavuzumuza bakın.

Etkinleştirmenin ardından, WordPress yönetici panelinizde Medya ” Yükleme Sınırını Artır bölümüne gidin.

Bu sizi ‘Maksimum Dosya Yükleme Boyutunu Seçin’ açılır menüsünden yeni bir dosya yükleme boyutu seçebileceğiniz bir ekrana getirir.

Ardından, ‘Değişiklikleri Kaydet’ düğmesine tıklayın.

Increase file upload size with plugin

Not: Maksimum dosya yükleme boyutu barındırma sağlayıcınız tarafından belirlenecektir. Açılır menüde listelenenden daha büyük bir dosya boyutu sınırına ihtiyacınız varsa, barındırma sağlayıcınızla iletişime geçmeniz ve sınırı artırmayı istemeniz gerekir.

Video Eğitimi

Yazılı talimatları takip etmekten hoşlanmıyorsanız, bunun yerine video eğitimimize göz atabilirsiniz:

Subscribe to WPBeginner

Umarız bu makale WordPress’te maksimum dosya yükleme boyutunu artırmanıza yardımcı olmuştur. WordPresste yüklenecek ek dosya türlerinin nasıl ekleneceğine ilişkin kılavuzumuzu ve WordPress yönetici alanını iyileştirmek için uzman eklenti ve ipuçlarımızı da görmek isteyebilirsiniz.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

406 yorumLeave a Reply

  1. Thanks for showing how to check the default limit. Just checked mine now and saw it’s 1GB. I think that’s good enough for me so I won’t be touching anything. I must also add that the wpcode method would have been my preferred method if I needed to change anything.

  2. Thanks for the tips. My site is hosted in BlueHost so I first tried Method 2. However, after changing the upload_max_filesize value, the Add New media page for my site still showed 64 MB. I went back into the MultiPHP INI Editor and looked at the other values. One other value stood out:
    post_max_size
    Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be larger than post_max_size.

    After I increased the post_max_size value as well, then the Add New media upload page showed the new limit. Perhaps you can update the post to include this tip.

    • Thank you for sharing this, we’ll be sure to look into it and possibly add it to the article in the future :)

      Admin

  3. All my limits were increased as suggested, but I started getting ‘files are too big’ after a plugin update. After double checking everything server and email side, the solution was changing from 5M to 5120kb in Contact Form 7 settings. The plugin suddenly stopped recognizing M when trying to override the default 1024kb setting.

    • It would depend on your host and what else is set up on your server for what will work. If nothing else works you can always reach out to your host for assistance.

      Admin

  4. You comments and thanks secion is almost 10 times longer..than the content of this page is guarantee of your amazing tips

    • If the recommendations are not working for you, we would recommend reaching out to your hosting provider and they should be able to assist if this is something they’ve set on their end.

      Admin

  5. Thank you so much. I tried all the methods and the last method was helpful for me.
    I would like to know should I undo the second last step that was php.ini?

    • It is not required to remove that file but you can remove it if it is not working for your server.

      Admin

    • If none of our recommendations work, we would recommend reaching out to your hosting provider to see if it is a restriction that they have set on their servers.

      Admin

    • It would depend on the method you are using but it could help with restoring a backup that large.

      Admin

    • If none of the recommendations worked we would recommend reaching out to your hosting provider for assistance.

      Admin

    • You would want to try restarting your localhost service just in case, otherwise, you would want to ensure you added/editied the php.ini correctly for the most common reason.

      Admin

  6. I think
    @ini_set( ‘upload_max_size’ , ’64M’ );

    should be
    @ini_set( ‘upload_max_filesize’ , ’64M’ );

    • upload_max_size currently increases that value as well as a few other things which is why we don’t use upload_max_filesize

      Admin

  7. IT WORKS!!! THANKS

    I made a file ini.php then uploaded it, then renamed it from ini.php.txt to ini.php and it worked.

    thanks

    • If our recommendations do not work you would want to reach out to your hosting provider to ensure they do not have it as part of their settings.

      Admin

    • If the file will not update, you would want to reach out to your hosting provider and they should be able to assist

      Admin

  8. I want to increase the limit to 250mb but i dont know if this exposes my site to security treats, though am only using gravity form and I have also set to disable php execution on my upload folder. And have allowed only jpg, and mp3 files.
    Please do you think this may affect my site load times as huge upload is coming from several users?

    • If multiple users attempt uploads at the same time it can have an effect on your site’s load time but it shouldn’t open you to security threats

      Admin

  9. Nice article, but I tried adding your 3 lines of code to the functions.php file, but got an “unknown @ rule” error. What’s that all about?

  10. Thanks, this helped me troubleshoot an upload limit. I’m on a WordPress multisite network install, so it ended up being a setting in the Network Admin Settings.

    I was confused at first, because my php settings were allowing larger uploads, but it was restricted in the Network Settings.

  11. Would have been great if you have included the .user.ini method.

    .user.ini uploaded in the root folder with the same value/text in your edited php.ini

    Most of the time, only this method works for shared hosting.

    ErnestPH

    • The php.ini file should work the same as the user.ini file unless your specific host ignores the php.ini but thank you for sharing your recommendation :)

      Admin

  12. Not working for me.
    I have followed this guide and double checked the php.ini file to make sure that the changed are in fact saved. changed htaccess file to increase limits. and also tried modifying the phpMyAdmin httpd-app.conf and php-settings.conf file. All of these files reflect max upload higher than 40m and my WP site does not reflect Any of these changes. Really frustrated here.

    Please help me, thanks !

    • If you haven’t already, you would want to reach out to your hosting provider to ensure there is not a setting on their end that is overriding what you are setting :)

      Admin

  13. i have tried all 3 method none of them worked. i am trying to upload newspaper theme in my in my wordpress site. but every time it show that php.ini file upload max file size.
    plz help me

    • You would want to reach out to your hosting provider to ensure they don’t have a setting that is overriding the changes you made.

      Admin

  14. Watchout for hidden php.ini files. In my setup I found 2 of them. The one which I found actually resolved the issue was found under

    ./etc/php/7.0/apache2/php.ini

    modifying this file fixed my issue.

    • Thanks for sharing your solution, with where that file is located we would recommend most users reach out to their hosting provider before looking in locations like that.

      Admin

  15. Thanks buddy i have solved my problem by adopting method 2 by editing my php.ini file
    Thanks alot you are working great

  16. None of the above worked for me. A matter of fact, editing the htaccess file broke my site even after deleting the above code. Overwriting with a new file fixed the problem though.

    I have a dedicated server on Bluehost. What worked for me was going in the WHM root, not cpanel nor FTP access. Search for MultiPHP INI Editor. Give it at least 5 minutes to load if you only see the title and icon. You can set you upload time, post size, etc. there. Works instantly, even if your site is using Cloudflare, without placing it in development mode or clearing the cache. I hope this helps someone.

    • Thank you for sharing what worked for you, should other users be on a dedicated server, if they reach out and let BlueHost know the need to increase the upload size then BlueHost can normally edit that for them :)

      Admin

  17. when i tried this
    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
    this happened to me
    whats the solution of this

  18. I had been trying php.ini method but it never works please how will I set it..
    Or you should please tell me the were to paste at function.php

    • You would normally use a text editor to set the content in the php.ini file. For your functions.php it should go at the end normally so it can be removed later as needed. You may also want to check with your hosting provider if you are having trouble with these methods for if they can assist in increasing the file size for you.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.