Sorry, this file type is not permitted for security reasons?
Wordpress media library is a standard media library. Users are allowed a lot's of file types using wordpress media library. Let's know the file types allowed by wordpress in media library.
Images:
- jpg
- jpeg
- png
- gif
ico
Documents:
.pdf(Portable Document Format; Adobe Acrobat).doc,.docx(Microsoft Word Document).ppt,.pptx,.pps,.ppsx(Microsoft PowerPoint Presentation).odt(OpenDocument Text Document).psd(Adobe Photoshop Document)
Audio :
.mp3.m4a.ogg.wav
Video:
.mp4,.m4v(MPEG-4).mov(QuickTime).wmv(Windows Media Video).avi.mpg.ogv(Ogg).3gp(3GPP).3g2(3GPP2)
1. This all is not enough for our daily perform jobs. Let's know how to allow all file types to upload in wordpress.
⇒ Goto ⇨cpanel⇨ open file manager. Then go to your ⇨public html directory where your wordpress files are located.
⇒ If you are using FTP then open ⇨public html directory where your wordpress files are located.
⇒ Find the ⇨wp-config.php file and edit the file.
⇒ After define( 'WP_DEBUG', true );
paste define( 'ALLOW_UNFILTERED_UPLOADS', true);
⇒ Save your file. That's it, you have done.
2. Allow file types using wordpress plugin-
1. Go to wordpress ⇨Dashboard ⇨Plugins⇨ Add New ⇨Search (WP Add Mime Types)
2. ⇨Install and ⇨Activate the plugin.
3. Now go to ⇨Settings ⇨Media Type Settings.
4. In the Add value box add your file type value.
Suppose I need .txt and .psd file type to allow in media uploader. ( Add)
kmz = application/vnd.google-earth.kml+xml
txt = text/plain
psd = application/octet-stream
That's it. Now enjoy:)




0 Comments