Only Admin can send Attachments
-
Hey,
thanks for the Plugin.
My Problem is that only Admin can send dxf or dwg Attachments.
For example jpg can anybody send.
In my functions I have added this
function my_upload_mimes() {
$mime_types = array(
‘dxf’ => ‘application/dxf’,
‘dwg’ => ‘application/acad’,
‘DXF’ => ‘application/dxf’,
‘DWG’ => ‘application/acad’,
‘zip’ => ‘application/zip’,
‘rar’ => ‘application/rar’,
‘ai’ => ‘application/ai’,
‘geo’ => ‘application/geo’,
‘pdf’ => ‘application/pdf’,
‘jpg’ => ‘image/jpeg’,
‘jpeg’ => ‘image/jpeg’,
‘png’ => ‘image/png’,
‘gif’ => ‘image/gif’,
‘bmp’ => ‘image/bmp’,
‘tif’ => ‘image/tiff’,
);
return $mime_types;
}
add_filter( ‘upload_mimes’, ‘my_upload_mimes’ );Can you help me please?!?!
Thanks
The topic ‘Only Admin can send Attachments’ is closed to new replies.