Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Kupası
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

Editoryal Not: WPBeginner üzerindeki ortak bağlantılardan komisyon kazanıyoruz. Komisyonlar, editörlerimizin görüşlerini veya değerlendirmelerini etkilemez. Editoryal Süreç hakkında daha fazla bilgi edinin.

WordPress’te maksimum dosya yükleme boyutunu artırmak mı istiyorsunuz?

Bazen düşük dosya yükleme boyutu sınırı, medya yükleyiciyle dosya yüklemenizi veya daha büyük WordPress eklentileri ve temaları yüklemenizi engelleyebilir.

Bu makalede, bu sorunları çözmek için WordPress’te maksimum dosya yükleme boyutunu nasıl kolayca artıracağınızı göstereceğiz.

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:

Video Eğitimi

Subscribe to WPBeginner

Yazılı talimatları tercih ediyorsanız, okumaya devam edin.

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 web sitenize 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, Kod Parçacıkları ” + Parçacık Ekle‘ye gitmelisiniz. Farenizi ‘Özel Kodunuzu Ekleyin’ seçeneğinin üzerine getirmeniz ve ardından ‘Snippet kullan’ düğmesine tıklamanız gerekecektir.

Add a Custom Snippet in WPCode

Bir sonraki ekranda, yeni snippet’inize bir ad vermeniz ve kod türünü ‘PHP Snippet’ olarak değiştirmeniz gerekir.

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.

Umarız bu makale WordPress’te maksimum dosya yükleme boyutunu artırmanıza yardımcı olmuştur. Ayrıca en iyi web sitesi oluşturucuyu seç me kılavuzumuzu ve ücretsiz seçeneklere sahip en iyi sanal işletme telefon numarası uygulamaları uzman seçimlerimizi 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.

Açıklama: İçeriğimiz okuyucu desteklidir. Bu, bazı bağlantılarımıza tıklarsanız komisyon kazanabileceğimiz anlamına gelir. WPBeginner'ın nasıl finanse edildiğini, neden önemli olduğunu ve nasıl destek olabileceğinizi görün. İşte editoryal sürecimiz.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Ultimate WordPress Araç Kiti

Araç setimize ÜCRETSİZ erişim sağlayın - her profesyonelin sahip olması gereken WordPress ile ilgili ürün ve kaynaklardan oluşan bir koleksiyon!

Reader Interactions

407 yorumBir Cevap Bırakın

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Alexander Gartley says

    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.

  3. Ernesto says

    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

    • WPBeginner Support says

      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 :)

      Yönetici

  4. Tamir Davidoff says

    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 !

    • WPBeginner Support says

      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 :)

      Yönetici

  5. rajesh says

    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

    • WPBeginner Support says

      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.

      Yönetici

  6. Adam Walsworth says

    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.

    • WPBeginner Support says

      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.

      Yönetici

  7. Rafiq khan says

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

  8. Carla says

    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.

    • WPBeginner Support says

      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 :)

      Yönetici

  9. rahul says

    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

  10. Ephraim says

    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

    • WPBeginner Support says

      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.

      Yönetici

  11. Achilleas says

    I am using Nginx and i had already setup properly the values for php in the php.ini but what fixed it was puting the same value in the server block with the variable client_max_body_size xxxM;

    I am writing this hoping it will help someone.

  12. Adriana Sabo says

    None of the options worked for me. Nothing happened when I tried the first two, and the last one prompted an error 500. Any way you can help?

  13. Tom Allen says

    The above explanation is fine for hosted sites, bit what about us guys that locahost? I still can figure out the “upload_max_filesize” error when downloading Updfaftplus from WP Plugins or from a download zip file. I am a beginner and need hand-holding through this process. Help is appreciated.

  14. crystal says

    hta access worked.
    you guys must put the code before #END WordPress
    if you put after #end wordpress then site goes to 500 internal server error in my experience with godaddy hosting

  15. Jaime Lopes says

    On most of the shared cPanel sites I’ve setup:

    -changing .htaccess brings the whole site down (500 internal error)
    -adding php.ini or php5.ini files does nothing
    -there is no option to choose ‘Site Software’ in cPanel…

  16. Megan says

    Thank you! This was a huge help! I couldn’t even upload plugins because my limit was pre-set at 2MB…Now I’ve got it to 64MB and am able to work.
    Thanks!

  17. Martin Croker says

    On vidahost (now TSOhost).

    Adding the following php.ini worked for me… however (and I’m still a bit confused why), just putting it at http root didn’t work – I had to duplicate the php.ini file inside wp-admin and wp-include directories within wordpress.

  18. Dwayne S says

    I’m on HostGator and currently having issue with max execution time. It occurred a few weeks ago and HostGator support fixed the issue. It now reappeared and support is telling me that they can’t fix it because I’m on shared server. The agent even crashed my site by manually editing the htaccess file and didn’t verify if it was working or not. He did however recommend a plugin that would edit the htaccess file with code to increase the limit but it doesn’t work. I guess HostGator blocks it

  19. Jessany says

    I added the code into the .php functions folder, and now WordPress will not load. How do I fix this problem??

  20. Caleb says

    I have GoDaddy hosting and contacted them to help me increase my file upload size. It was a piece of cake — I didn’t have to create any files, add code to my theme, or anything like that. So for those of you who have GoDaddy or cPanel type controls, forget hacks and just use your admin settings.

    Here’s what support had me do:
    1. Go to your cPanel Admin (a similar hosting panel ‘might’ work somewhat the same)
    2. Scroll down to the ‘Software’ and click on ‘Select PHP Version’
    3. Click on ‘Switch to PHP Options’ in the top right And TADA! There’s all your PHP Options!
    4. Just go down and change the ‘post_max_filesize’ and ‘upload_max_filesize’ to whatever you want, apply and save your changes, and you’re now a safe and happy non-coding website owner.

    Good luck!

    • Rich Perozich says

      This worked for me but in order to even find these files, I had to call godaddy where I was walked through these steps or I never would have been able to navigate to the cpanel Admin without their help.
      1. Sign on to godaddy
      2. Click on my products upper left
      3. Under web hosting click manage all
      4. Click web hosting with C panel
      5. Click C panel Admin icon
      6. Scroll down to Software and click Select php version
      7. Click on switch to php options
      8. At bottom of page click on the number upload_max_filesize and select # you wish as the max filesize
      9. Click apply. It works. Now file sizes can be uploaded to the selected max.

  21. Chris Sandford says

    Multisite Users:
    If your a dumb dumb like me, you may have tried everything to no avail.
    Don’t forget if you’re using WordPress Multi-site, to change the upload settings for individual sites.
    Network Admin > Settings > Max upload file size

    You may still need to use the tips in this article, but without changing the upload settings for multi-site, you won’t know if it’s working.

  22. mara says

    Anyone on here get this to work with Godaddy? There are very unhelpful. I know I need to create the php.ini file, (and I did), but none of the solutions you posted worked. Any help is appreciated.

  23. Lynn says

    Wish you wouldn’t assume everyone looking for this solution knows what you mean by our “Theme Functions File” – do you mean functions.php? I’m not an expert, and I’m really good at following precise directions, and don’t want to even put a toe in the water of editing files if I don’t know EXACTLY what file you’re talking about! No clues were provided, like what other code I might look for in the file to know I’m in the right place, etc. So…this didn’t help me at all :-(

  24. Alex says

    Thank you, method 3 really worked for me
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300

  25. Mituka says

    This worked for me.

    Open your .htacess file with notepad.

    Skip everything you see and at the bottom.

    Paste the following and save.

    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300

    • Thomas says

      Where exactly did you paste it?

      # BEGIN WordPress

      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ – [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]

      # END WordPress

      php_value upload_max_filesize 64M
      php_value post_max_size 64M
      php_value max_execution_time 300
      php_value max_input_time 300

      Is it before the #END WordPress statement? ( I get error when I do that)

      Or should it be after the #END WordPress statement?

Bir Cevap Bırakın

Yorum bırakmayı seçtiğiniz için teşekkür ederiz. Lütfen tüm yorumların yorum poli̇ti̇kasi uyarınca denetlendiğini ve e-posta adresinizin yayımlanmayacağını unutmayın. Ad alanında anahtar kelime KULLANMAYIN. Kişisel ve anlamlı bir sohbet edelim.