The file uploads addon adds an upload icon to comment boxes, which allows the user to upload a file with their comment.ย 
A standard WordPress installation typically allows uploading these file types:
.jpg.jpeg.png.gif.ico.pdfย (Portable Document Format; Adobe Acrobat).doc,ย .docxย (Microsoft Word Document).ppt,ย .pptx,ย .pps,ย .ppsxย (Microsoft PowerPoint Presentation).odtย (OpenDocument Text Document).xls,ย .xlsxย (Microsoft Excel Document).psdย (Adobe Photoshop Document).mp3.m4a.ogg.wav.mp4,ย .m4vย (MPEG-4).movย (QuickTime).wmvย (Windows Media Video).avi.mpg.ogvย (Ogg).3gpย (3GPP).3g2ย (3GPP2)However,ย itโs not always possible to upload all these file typesโsome hosting providersย limit the set of validย file types and even the maximum file size you can upload in your installation.
It’s possible to allow additional file types through WordPress’ย upload_mimesย filter.
function my_custom_mime_types( $mimes ) {
// New allowed mime types.
$mimes['svg'] = 'image/svg+xml';
$mimes['svgz'] = 'image/svg+xml';
$mimes['doc'] = 'application/msword';
// Optional. Remove a mime type.
unset( $mimes['exe'] );
return $mimes;
}
add_filter( 'upload_mimes', 'my_custom_mime_types' );
https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes
Exclusive bulk discount on all digital product categories. The more you buy, the more you save!
Valid until May 31, 2026 ยท All categories included ยท Discount applied automatically at checkout.
User Reviews
There are no reviews yet.