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 Yüklenecek Ek Dosya Türleri Nasıl Eklenir?

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.

Web sitenize normalde WordPress tarafından desteklenmeyen dosyalar yüklemeniz mi gerekiyor?

WordPress’te resimler, videolar, ses dosyaları ve ofis dosyaları dahil olmak üzere birçok yaygın dosya türünü yükleyebilirsiniz. Ancak bazı web sitesi sahiplerinin desteklenmeyen dosyaları yüklemesi gerekir.

Bu makalede, WordPress’te yükleme için nasıl ek dosya türleri ekleyebileceğinizi göstereceğiz.

How to Add Additional File Types to Be Uploaded in WordPress

WordPress’te Hangi Dosya Türlerinin Yüklenmesine İzin Verilir?

Güvenlik nedeniyle, WordPress web sitenize veya WooCommerce mağazanıza yalnızca en sık kullanılan dosya türlerini yükleyebilirsiniz. Yüklenebilecek dosyalar için maksimum boyut sınırı da vardır.

Varsayılan olarak, izin verilen dosya türleri ve uzantıları şunlardır:

Görüntüler:.jpg, .jpeg, .png, .gif, .ico, .webp
Belgeler:.pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .PSD, .XML
Ses.mp3, .m4a, .ogg, .wav
Video.mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, .3g2

İpucu: WordPress’e video yükleyebilmenize rağmen, bunun yerine bir video barındırma sitesi kullanmanızı öneririz. Bu, web sitenizin hızını ve performansını korumaya yardımcı olur.

Ancak, bazı dosya türleri kötüye kullanılma potansiyeline sahiptir ve güvenlik riski oluşturabilir, bu nedenle WordPress bunları varsayılan olarak etkinleştirmez.

İşte WordPress tarafından engellenen dosya türlerinin bir listesi:

.svg, .bmp gibi görüntüler
.psd, .ai, .pages gibi belgeler
.css, .js, .json gibi kod dosyaları
.flv, .f4l, .qt gibi videolar

WordPress sitenize desteklenmeyen yeni dosya türleri eklemeye çalışırsanız,‘Üzgünüz, bu dosya türünü yüklemenize izin verilmiyor’ hata mesajınıgörürsünüz.

You Are Not Allowed to Upload Some File Types to WordPress

Peki ya desteklenmeyen bir dosya formatı yüklemeniz gerekiyorsa? Dosyaları FTP veya WordPress sunucunuzun dosya yöneticisi aracılığıyla yük leyebilirsiniz, ancak bu, yerleşik WordPress medya kitaplığını veya bir dosya yükleme formunu kullanmak kadar kullanışlı değildir.

İpucu: SVG uzantılı görseller yüklemek istiyorsanız, WordPress’te SVG dosyalarının nasıl ekleneceğine ilişkin kılavuzumuza da göz atabilirsiniz.

WordPress’te yüklenecek ek dosya türlerinin nasıl ekleneceğine bir göz atalım.

WordPress’te Yüklenecek Ek Dosya Türleri Nasıl Eklenir?

Bazı eğitimler size functions.php dosyanızı düzenlemenizi ve oraya bir PHP kod parçacığı eklemenizi söyleyecektir. Ancak, farklı dosya türlerini etkinleştirmenin en kolay ve en güvenli yolunun basit bir eklenti olduğunu düşünüyoruz.

Öncelikle, WPForms eklentisi tarafından ücretsiz Dosya Yükleme Türlerini yüklemeniz ve etkinleştirmeniz gerekir. Daha fazla ayrıntı için, bir WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

En iyi dosya yükleme eklentilerinden biridir ve WordPress’e ek dosya türleri için destek eklemenin en kolay yoludur. WPBeginner’ın kurucusu Syed Balkhi tarafından ortaklaşa yaratılmıştır.

Önceden Ayarlanmış Dosya Türlerini Kullanma

Etkinleştirmenin ardından WordPress yönetici alanınızdaki Ayarlar ” Dosya Yükleme Türleri sayfasına gidin. Ardından, önceden ayarlanmış dosya türleri listesinde gezinebilir veya arama kutusuna bir dosya türü girebilirsiniz.

Add a File Type by Clicking a Checkbox

Ardından, etkinleştirmek istediğiniz dosya türlerinin yanındaki kutuları işaretleyin.

İşiniz bittiğinde, değişikliklerinizi kaydetmek için ekranın altındaki ‘Ayarları Kaydet’ düğmesine tıklamanız gerekir.

Click the Save Settings Button

Artık WordPress medya kitaplığını kullanarak bu dosya türlerini yükleyebileceksiniz.

Özel Dosya Türleri Ekleme

Eklemek istediğiniz dosya türü hazır ayarlar listesine dahil edilmemişse, özel bir dosya türü olarak ekleyebilirsiniz.

Dosya Yükleme Türleri ekranını aşağıya doğru kaydırdığınızda, ‘Özel Dosya Türleri Ekle’ etiketli bir bölüme geleceksiniz. Burada bir açıklama, MIME türü ve dosya uzantısı girerek yeni bir dosya türü ekleyebilirsiniz.

Başka bir özel dosya türü eklemek için satırın sonundaki ‘+’ simgesine tıklamanız yeterlidir. İşiniz bittiğinde, değişikliklerinizi kaydetmek için ‘Ayarları Kaydet’ düğmesine tıklamayı unutmayın.

Add Custom File Types to WordPress

Örneğin, YAML dosya türünü eklemek isterseniz, açıklamaya ‘YAML dosyası’, MIME türü alanına ‘text/yaml’ ve dosya uzantısı olarak ‘.yaml’ yazarsınız.

MIME (‘Multipurpose Internet Mail Extension’) web üzerindeki dosyaları tanımlamanın standart bir yoludur. Bir dosyanın MIME türünü öğrenmenin en kolay yolu bir MIME Dosya Türü Denetleyicisi kullanmaktır.

Umarız bu eğitim WordPress’te yüklenecek ek dosya türlerinin nasıl ekleneceğini öğrenmenize yardımcı olmuştur. Ayrıca WordPress’te nasıl dosya yükleme formu oluşturacağınızı öğrenmek veya en iyi WordPress temaları listemize göz atmak 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

44 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. Reinette says

    If this is a beginner’s tutorial then I would need the pre-beginner tutorial :(

    All I want to do is upload .mobi and .epub files to my Woocommerce store and I can´t find any help that I’m able to understand. Why is this so difficult?!

  3. kevin kipkirui koech says

    YEEEES it workd for me to uploa ApK file android apk
    her is the code i added at the bottom of functions.php

    function my_myme_types($mime_types){
    $mime_types[‘svg’] = ‘image/svg+xml’; //Adding svg extension
    $mime_types[‘psd’] = ‘image/vnd.adobe.photoshop’; //Adding photoshop files
    $mime_types[‘apk’] = ‘application/vnd.android.package-archive’; //Adding apk files
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

  4. Ali Hassam says

    Please make blog on how to make download option in the wordpress.

    I hope you understand what I said.If some one click ‘download`. It will download.

  5. ujwal says

    i have added the below code in functions.php but when i’m trying to upload ‘svg’ files,i’m getting the same error. Please help me.
    ‘Sorry, this file type is not permitted for security reasons.’

    /********** code used ***************/
    //Adding different file format
    function my_myme_types($mime_types){
    $mime_types[‘svg’] = ‘image/svg+xml’; //Adding svg extension
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

    • WPBeginner Support says

      You would want to reach out to your hosting provider, they are likely overriding the files allowed to be uploaded

      Yönetici

  6. Kymmie says

    OMG! You saved me! I followed your instructions and I am now able to upload EPUB files to my form in Request Book Review page on my website. Thank you!

      • Robin says

        Allow All File Types

        You can also setup WordPress to allow to upload all file types. This can be performed with the help of a WordPress constant “ALLOW_UNFILTERED_UPLOADS”. You can set the WordPress constant “ALLOW_UNFILTERED_UPLOADS” to true” in wp-config.php file of your WordPress install. The wp-config.php file can be found in the root directory of your WordPress install. Using your favorite editor (vi editor) open the wp-config.php file and add the following line somewhere in the file. You can also use File Manager to edit the WordPress configuration file.

        define(‘ALLOW_UNFILTERED_UPLOADS’, true)

        Don’t forget to save the config file after editing.

        • WPBeginner Support says

          The dangers of a method like this would be that you are allowing every file type to be uploaded to your site which removes some safety.

  7. rob thirlby says

    I still cannot get csv uploads to work in 4.9.9 upwards of wordpress. Has anyone got a solution? Just adding the csv type to the list doesn’t seem to help. Is csv explicitly banned in the core somewhere.

  8. Sam Bean says

    Is all this still good for WordPress 4.9.2? I also could not find any mime types for Adobe Illustrator files (.AI and .EPS)

    Can you tell me what I would add to the file to be able to upload those 2 file types?

  9. Ravi Kanani says

    I want to upload Embroidery Design file .emb
    In the page several common file extension .emb is not included.

    Please Give me code to upload .emb type of files.

  10. Jaime says

    I did what the instructions say and I still can’t upload .ogv files.

    I added this code to functions.php:

    function my_myme_types($mime_types){
    $mime_types[‘ogv’] = ‘video/ogg’; //Adding ogv extension
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

    Does anybody know why it doesn’t work?

  11. Sarah says

    This worked to allow me to initiate the upload of a dmg file, but when it says the is 100% complete, it doesn’t show up in the Media files, and it isn’t in the wp-content folder either, so I’m not sure why… any ideas?

  12. Sajed Shaikh says

    Hi,

    I want to upload .gifv file extension image. For that I have added the following code in functtions.php file.

    function my_myme_types($mime_types){
    $mime_types[‘gifv’] = ‘image/gifv’;
    return $mime_types;
    }
    add_filter(‘mime_types’, ‘my_myme_types’, 1, 1);

    File is uploaded successfully but its not playing. Please help.

  13. Dustin says

    Doing this example I was able to now allow upload of AI file with custom Icon for the file type. I would like to change the icon used for PDF to a PDF icon. Can this be done?

    Seems like it just wants to use the default

  14. Amit Saxena says

    hi,

    i m facing same issue still, i added apk extention from function file.
    but it shows still same issue.

    kindly suggest.

  15. Diana says

    Thanks for this article, I used it today! I have a question. I had to allow .sql file types to be uploaded to wordpress, in order to upload some of my scripts that I would like to share.
    The problem is, if I put the script in a link, when I click on the link, the script downloads automatically, instead of opening in a new window.
    This is the code I added:
    function my_myme_types($mime_types){
    $mime_types[‘sql’] = ‘text/x-sql’; //Adding sql extension
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);
    When can I change the behavior? Also after the file is uploaded it says it is SQL type.

    Thanks
    Diana

      • Kevin says

        At the bottom of the functions.php page. At the top? Is there already a place I add them to, like under the allowed file types already there? (jpg,gif,mp4,etc…)

        I’ll try at the bottom and see what happens.

        • Kevin says

          Worked. For the people wondering. I just scrolled to the end of that page and pasted the code in there. If you copied and pasted the code up there, don’t be like me and leave the numbers. Just erase the numbers.

          And if you’re like me, you just skimmed through to find what you’re looking for. I couldn’t find what I had to put so it would open the right program, it’s in that link that’s hidden between the snippets of code up there. “File extensions” is what you’re looking for. Go to that page and look up your extension you want to add, I wanted to add KML and KMZ for my wiki on a stick and it looks like this…

          function my_myme_types($mime_types){
          $mime_types[‘kml’] = ‘application/vnd.google-earth.kml+xml’; //Adding kml extension
          $mime_types[‘kmz’] = ‘application/vnd.google-earth.kmz’; //Adding kmz files
          return $mime_types;
          }
          add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

          All I did was copy and past the code up there and changed the file extension and the… other part. Worked like a charm.

          Oh, the finctions.php is in appearance -> Editor -> On the right side of that page, Theme Functions (functions.php). Just scroll to the end of that page and add your code there.

  16. Jeremy Taylor says

    Adding the code looks pretty easy but it is not clear where I should add the code. Where do I go from my dashboard to add it? I’m using WordPress 4.3.1.
    Thanks

    Jeremy

    • Kymmie says

      Go to Appearance > Editor > Look for functions.php and just add the code to the bottom. Don’t forget to put a label like

      //Adding different file format

      so you would know.

  17. Bry says

    Hi There.
    Thanks for the really useful information…
    I managed to get the different file types (.IES and .LDT files) to upload ok following your advise above but unfortunately they do not download as files, but rather as code….any tips on how to fix this issue?.
    Thanks in advance for your help.
    Regards
    Bry

    • Bry says

      This is the code i used in the theme-function.php file..

      function my_myme_types($mime_types){
      $mime_types[‘ies’] = ‘application/octet-stream’; //Adding .ies extension
      $mime_types[‘ldt’] = ‘application/octet-stream’; //Adding .ldt extension
      return $mime_types;
      }
      add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

  18. Mark Gandy says

    How do you get the file type’s small icon (the file type logo) to load automatically where it will be positioned next to the name of the file (which is a link)? I’m guessing that’s CSS?

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.