enquiry – upload any file types

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace enquiry – upload any file types

Viewing 2 reply threads
  • Author
    Posts
    • #71768
      thiemann.k
      Participant

      Hey Community,

      on enquiry, the following files can be uploaded: jpg|jpeg|jpe, gif, png, pdf, doc, docx

      https://ibb.co/gm8k0Wj

      how can I allow other files ? (STL, OBJ, CAD, usw..)

      Greetings from Germnay, Karsten

    • #72254
      WCFM Forum
      Member

      Hi,

      Please add this to your child theme’s functions.php –

      add_filter( 'wcfm_mime_types', function( $allowed_mime_types, $field ) {
      	$allowed_mime_types['stl'] = 'application/octet-stream';
      	$allowed_mime_types['obj'] = 'application/octet-stream';
      	return $allowed_mime_types;
      }, 50, 2 );

      Thank You

    • #72734
      thiemann.k
      Participant

      Excellent! THANK YOU

      …. it can be so easy sometimes

Viewing 2 reply threads
  • The topic ‘enquiry – upload any file types’ is closed to new replies.