
How to upload SVG in Wordpress? How to fix SVG file error?
How to upload SVG in Wordpress? How to fix SVG file error?
How to upload svg media files to WordPress? By default WordPress does not allow svg files. So, how to fix “Sorry, This File Type Is Not Permitted for Security Reasons” svg error in WordPress?
The code line that you need:
define(‘ALLOW_UNFILTERED_UPLOADS’, true);
Content
0.08 -> hello youtube hello everyone
2.639 -> wordpress allows some media extensions
5.359 -> such as png jpg however
8.88 -> some extensions are not allowed as
11.599 -> default by wordpress such as
14.92 -> svg when you try to upload an svg file
19.119 -> you will face with an error
21.68 -> or warning
23.039 -> which is sorry this file type is not
26.8 -> permitted for security reason svg
30.72 -> i want to share how i
34 -> achieved this problem i have recently
36.8 -> installed a wordpress site on my hosting
39.68 -> and
40.48 -> i haven't done any settings in order to
43.68 -> svg media permission
46.48 -> before getting started please go to the
49.76 -> plugin page in your wordpress panel and
53.039 -> add vp file manager plugin and activate
55.84 -> it
56.8 -> this plugin allows you to reach
59.6 -> your files on your hosting i accept that
63.12 -> you have installed and activated this
65.199 -> plugin okay let's keep going
68.88 -> please click on the vp
71.6 -> file manager
73.68 -> from your wordpress panel
75.92 -> all the files of your website on the
78.56 -> host
79.52 -> will be listed under public html you
82.479 -> should see
84.759 -> vp-config.php file
86.72 -> all right click on that file and open
89.759 -> with code editor
92.799 -> then copy this this line
95.2 -> of code which is shared in the
97.84 -> description of this video and paste it
101.759 -> in the
104.28 -> vp-config.php file save the file this
107.36 -> line code will
109.28 -> give the permission
110.96 -> to wordpress to allow
113.36 -> to upload
114.399 -> the svg extension to your website
118.32 -> let's try one more time
119.83 -> [Music]
122.479 -> awesome it has been uploaded it's done
126 -> hope it works for you please write as
128.56 -> comment you can write any other
131.12 -> issue
132.08 -> with wordpress i will do my best to help
135.12 -> you
135.92 -> thanks for watching this is my first
137.76 -> video please subscribe this video for
140.64 -> more videos
Source: https://www.youtube.com/watch?v=6h73zOAjjL0