How to Fix "Sorry this file type is not permitted for security reasons" in WordPress

Sdílet
Vložit
  • čas přidán 29. 08. 2020
  • Learn how to fix the WordPress error message "Sorry this file type is not permitted for security reasons" which results in a failed upload by adding this line to your wp-config file:
    define('ALLOW_UNFILTERED_UPLOADS', true);
    Find more at tonyteaches.tech
    Check out my vlog channel ‪@TonyFlorida‬
    #wordpress
  • Jak na to + styl

Komentáře • 27

  • @webteam986
    @webteam986 Před 2 lety

    Thanks!

  • @leonard_r0
    @leonard_r0 Před 3 lety

    Thank you :)

  • @hclyrics2072
    @hclyrics2072 Před 3 lety +1

    good job bro 🙏

  • @moora1417
    @moora1417 Před 3 lety

    Thank you

  • @santoshdevkota6826
    @santoshdevkota6826 Před 3 lety

    thanks bro

  • @dhruboshahriar3959
    @dhruboshahriar3959 Před 3 lety

    How do i open tonyflorida? The place where you was coding

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety

      If you have Mac, you can use Terminal czcams.com/video/SfTSBbaFN8Y/video.html
      If you have Windows, you can use Putty czcams.com/video/pWDHUlvcAsg/video.html

  • @rubenh5490
    @rubenh5490 Před 3 lety

    hi bro, i cant reach my page trough the cmd...its the same?

  • @E-Pedagogy
    @E-Pedagogy Před 3 lety

    i upload file with this method but not working show this error "Specified file failed upload test." File is .cvs

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety

      I think that .csv files are not allowed to be uploaded to the WordPress media library by default

  • @zerocool1384
    @zerocool1384 Před 5 měsíci

    did everything as u said,but still cant upload image

  • @Monstajamsofficial
    @Monstajamsofficial Před 3 lety

    Please provide a video on how to increase upload size and all
    Thanks

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety +2

      Here you go czcams.com/video/PLKIPcY_eMs/video.html :)

    • @Monstajamsofficial
      @Monstajamsofficial Před 3 lety

      Tony Teaches Tech how do you do it for Nginx ??

    • @TonyTeachesTech
      @TonyTeachesTech  Před 3 lety +1

      @@Monstajamsofficial Same process. You need to edit the php.ini file. Check in /etc/php/7.2/fpm/php.ini (or whatever version of PHP you're using)

    • @Monstajamsofficial
      @Monstajamsofficial Před 3 lety

      @@TonyTeachesTech I have tried it and it does not work.

    • @Monstajamsofficial
      @Monstajamsofficial Před 3 lety

      it has worked, had to do "sudo systemctl restart php7.4-fpm"

  • @starduscodm136
    @starduscodm136 Před 2 lety

    hwo to do this in windows 10