Support » Plugin: Front End PM » Attachments Problem

  • Kalusha

    (@kalusha)


    Hey, first… Great Plugin.

    I have added this code into my functions
    function my_upload_mimes() {
    $mime_types = array(
    ‘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’ );

    Now the Problem:
    The Admin can send every file, also for example .dxf
    Any other User can not send this Files. Then comes no message or else, only the File is not attached.
    I have try to every Plugins disable but nothing helps. The mistake must in the Plugin Front End.

    Can you help me please?

    Thanks a lot.

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

    (@shamim51)

    Which version of WordPress you are using? Can user upload that file in media library in wp admin?

    If define('ALLOW_UNFILTERED_UPLOADS', true); is added to wp-config.php, does it works?

    Hey,
    thanks for the Quick Answer. 🙂

    I have this WordPress Vers. 5.2.4–de_DE and all Plugins are Updated.
    I have added the Code above but it doesn´t help.

    How can I check that User can Upload Files in the media Database. I think they can not upload Files like .dxf

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.