• Resolved Kalusha

    (@kalusha)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    This plugin uses wordpress build in upload system. If you can add any attachment into post you will be able to add that in messages.

    If you cannot then that is not this plugin issue. You an ask in common forum.

    Thread Starter Kalusha

    (@kalusha)

    hmmmm, in any post I can Upload dxf or dwg Files but only in your Plugin not.

    Any Idea what I can doß The code above is right!?!?

    Thanks

    Plugin Author Shamim Hasan

    (@shamim51)

    Your above code seems ok.
    You can disable all other plugins and change theme to default theme then try.

    Thread Starter Kalusha

    (@kalusha)

    OK, I have disable all Plugins and avticvate a default theme but it works not.

    Only Admin can send dxf or dwg Files.

    other Idea?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Only Admin can send Attachments’ is closed to new replies.