How to fix ‘Sorry, this file type is not permitted for security reasons.’ in WordPress

Overview

In this Scenario We are looking the most common error that can be occur when we are uploading / importing the media and it getting error “Sorry, this file type is not permitted for security reasons” . Its getting because the WordPress has some limits/ restriction on uploading / importing media for our safe browsing internet.

Why is it getting “Sorry, this file type is not permitted for security reasons.” error ?

WordPress have followed the standard security policy. That’s why it implement some limits on uploads / import media otherwise suspicious user could upload the malware file & get benefits from them. if we take example, Suppose, we are enable the unfiltered uploading / importing media on the other hand attacker could upload the malware files on to them and take access on it, either he/she demands ransomware, So there are lots of things that could be happen. if WordPress unfiltered options enable it by default.

WordPress allowing the common using extensions it can helps to upload images, documents, audio, video apart of them other extension are blocked for security reason. it will help you to protect unwanted uploading from suspicious user.

By default enable extensions in WordPress

Images

.jpg
.jpeg
.png
.gif
.webp

Documents

.pdf (Portable Document Format; Adobe Acrobat)
.doc, .docx (Microsoft Word Document)
.odt (OpenDocument Text Document)
.xls, .xlsx (Microsoft Excel Document)
.key (Apple Keynote Presentation)
.ppt, .pptx, .pps, .ppsx (Microsoft PowerPoint Presentation)

Audio

.mp3
.m4a (might not work in all browsers)
.ogg
.wav

Video

.mp4, .m4v (MPEG-4)
.mov (QuickTime)
.wmv (Windows Media Video)
.avi
.mpg
.ogv (Ogg)
.3gp (3GPP)
.3g2 (3GPP2)

Why we are enabling it?

Sometimes we make our work easy and reliable. So, we want to upload other extension that are not include in default extension in WordPress. In this scenario we are modifying our woo-commerce product so firstly we are exported all product and when we are upload the csv file but it getting “Sorry, this file type is not permitted for security reasons” error, So if we are not enable it then we will make it manually and it taking too much time compare to updating through importing options.

How to enable it & Disable it ?

Go to the WordPress root directory and find the “wp-config.php” file open in editor mode and add a line at bottom then save it. After your job is complete don’t forget to disable it. To disable it you can remove the code line and you can also make false instead of true.

define('ALLOW_UNFILTERED_UPLOADS', true);

Now you are able to all types of extension upload / import on to the database easily.

We have successfully import 29 products. I hope this article will help you.

1 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
https://duniapermainan.id/https://borobudur.site/https://beritamakan.xyz/http://lesfergusonjr.com/https://ajudanze.us/https://birosdmpoldakaltara.com/https://bidpropamkaltara.com/https://www.inmercociudades.org/https://missglobalnigeria.com/https://gilchristfliegen.com/https://auroratotosatu.net/https://auroratoto-2.com/https://portalberitaberitaindo.web.id/https://berita69.web.id/https://otomotif188.web.id/https://otomotifku.web.id/https://wawasannusantara.web.id/https://universitasterbuka.web.id/https://komunitaswni.web.id/https://wartacpns.web.id/https://langkahmaxwin.web.id/https://lowongankerja-1.biz.id/https://totocosmic.net/https://beritajakarta.biz.id/http://evobiolab.biol.amu.edu.pl/http://www.tnibase.org/http://www.wzgenomics.cn/https://selumakab.go.id/https://man1bekasi.sch.id/https://maxi188.shop/https://wukong778.shop/https://www.wukong778-indonesia.store/https://soykb.org/https://hanomantoto.vip/https://lokermedan.web.id/https://ceskeamoravskehrady.cz/https://cometa.tigem.it/https://hanomantoto.store/http://ipl.iust.ac.ir/https://pmb.unaki.ac.id/http://www.injur.ru/https://grillcentr.ru/http://mistic.leloir.org.ar/Jmol/eduhttps://xn----8sbcflre0apkqdho.xn--p1ai/http://liao.cis.udel.edu/https://efeitoharmony.com.br/https://edscience.org/https://webdev.pagaralamkota.go.id/https://test.ipnujatim.or.id/https://jdih.selumakab.go.id/https://www.laoplazahotel.com/http://wgmlstdb.imst.nsysu.edu.tw/temp/at/https://www.transform.global/https://dev.vanas.ca/http://postupi.v-teatre.ru/https://demo-simonev.trenggalekkab.go.id/https://ahmadkhani.co/https://ceskeamoravskehrady.cz/https://kec-karangbintang.tanahbumbukab.go.id/https://gilchristfliegen.com/https://wsf2024nepal.org/https://selumakab.go.id/https://asdos.stiedharmanegara.ac.id/https://stiedharmanegara.ac.id/https://ortu.stiedharmanegara.ac.id/https://www.xwalk.org/https://www.globalpartnerservice.co.id/https://diperta.tulungagung.go.id/https://ppid.trenggalekkab.go.id/https://buendnisjungelandwirtschaft.org/https://www.immersivelink-lms.ca/https://icits.ucyp.edu.my/https://wukong778.store/http://sitarida.tapselkab.go.id/https://bigup-at.avefenix.edu.co/http://expath.itps.ncku.edu.tw/cache/gacor/https://bkad.bengkuluutarakab.go.id/https://seo.acadstudent.ru/https://alumni.stiedharmanegara.ac.id/http://atmirnet.itps.ncku.edu.tw/https://e-sertifikat.belitung.go.id/https://jdih.selumakab.go.id/http://youngme1.pro-linuxpl.com/https://giantassistance.pl/https://www.ranw.org/umbraco/index.phphttps://paredis.nl/http://toefl.ikippgribojonegoro.ac.id/http://secondary-physical.bcc.ac.th/https://dev-qualityfortrade-admin.intracen.org/nova/loginhttps://ncc.potensi-utama.ac.id/https://hanomantoto.store/http://primary-art.bcc.ac.th/https://missglobalnigeria.com/https://wukong778.shop/https://pu.enrekangkab.go.id/https://dprd.tanahbumbukab.go.id/http://meteng.iust.ac.ir/https://www.wukong778-indonesia.store/https://edu.acadstudent.ru/loginhttps://maxi188.shop/https://pmb.unaki.ac.id/https://disdukcapil.anambaskab.go.id/http://liao.cis.udel.edu/http://nanoenergy.iust.ac.ir/https://satudata.sumselprov.go.id/web.htmlhttps://laoplazahotel.com/https://gilchristfliegen.com/https://expresskyc.gwcindia.in/https://e-statistik.temanggungkab.go.id/https://www.ohmdenki.co.th/https://matingarten.de/https://houseofpond.com/https://wbs.tangerangselatankota.go.id/https://selog-express.sera.astra.co.id/hc-aw/https://bkpsdm.selumakab.go.id/https://sinsi.bkpsdm.landakkab.go.id/https://amirkhani.iust.ac.ir/https://lesfergusonjr.com/https://birosdmpoldakaltara.com/https://cometa.tigem.it/https://bidpropamkaltara.com/https://espmi.staiku.ac.id/http://www.injur.ru/https://sipisang.tangerangselatankota.go.id/https://www.inmercociudades.org/https://webdev.pagaralamkota.go.id/https://visitama.co.id/https://afi.syekhnurjati.ac.id/http://pustaka.pipmakassar.ac.id/https://efeitoharmony.com.br/https://grillcentr.ru/https://smartcampus.co.id/http://mistic.leloir.org.ar/Jmol/eduhttps://ika.untagsmg.ac.id/https://fisip.untagsmg.ac.id/https://bioinfo.icgeb.res.in/http://www.facweb.iitkgp.ac.in/https://tgs-isl.ucyp.edu.my/https://universodapedagogia.com.br/https://elearning.femnet.org/https://www.runindia.in/https://aveironet.com/https://mik.co.id/https://wng.co.id/https://pitpanbandanthai.finearts.go.th/https://man1bekasi.sch.id/https://library.ucyp.edu.my/https://mahirdigital.id/https://www.wsf2024nepal.org/at/https://svn.laotel.com/auth/https://www.omegaint.net/https://justinjurist.com/https://expresskyc.gwcindia.in/http://shojaeefard.iust.ac.ir/http://shamaghdari.iust.ac.ir/http://ipl.iust.ac.ir/https://donate.ft.org.ua/http://rnamd.org/https://dlh.tanahbumbukab.go.id/https://www.transform.global/https://mmt.darmajaya.ac.id/https://edscience.org/https://dev.vanas.ca/https://www.laoplazahotel.com/https://e-sertifikat.belitung.go.id/cosmic/https://e-sertifikat.belitung.go.id/bb/http://wgmlstdb.imst.nsysu.edu.tw/temp/at/http://postupi.v-teatre.ru/https://zarbi.chem.yale.edu/ligpargen/userImages/https://demo.sansekertaindonesia.co.id/http://secondary-physical.bcc.ac.th/https://demo-simonev.trenggalekkab.go.id/https://ceskeamoravskehrady.cz/https://riffytravel.co.id/inkuu/http://gw.51qqb.cn/https://academic.ucyp.edu.my/https://lidham.co.il/http://blueocean.pipmakassar.ac.id/https://dinkes.sumselprov.go.id/at2/index.phphttp://evobiolab.biol.amu.edu.pl/html/