• Resolved charlotte83

    (@charlotte83)


    Hello,

    Thanks for your plugin – it is great !

    I noticed that webp files aren’t allowed, is there a way around that?
    Also, regarding the file size max, is it the same as our max upload size for Medias?

    Thanks in advanced for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @charlotte83 ,

    1. Make sure to manually add filetypes:webp to the [mfile] shortcode parameter.

      For example: [mfile uploader-xxx filetypes:webp|jpeg|jpg|gif|png|pdf|docx|odt|doc|heic|zip]

      Or you can do via cf7 form tag generator. (see screenshot below)

      If you have already added the (webp) extension but it’s still not working, it might be related to mime types.

      Try to add the code below in your child/theme functions.php file.

      function add_webp_mime_types($mime_types) {
      $mime_types['webp'] = 'image/webp';
      return $mime_types;
      }
      add_filter('mime_types', 'add_webp_mime_types');

        2. For max size limit, if not set the default is 10MB so you should configure it manually to match the max limit in your WordPress media library.

        To do that, you will need to add limit:BYTES_FORMAT parameter in [mfile] shortcode, or you can configure it using CF7 form tag generator.

        Example: [mfile uploader-xxx filetypes:webp|jpeg|jpg|gif|png|pdf|docx|odt|doc|heic|zip limit:104857600]

        Note: limit should be bytes format you may use MB to Bytes converter in Google (ie: 104857600 = 10MB)

        For more information you may follow this guide – https://www.youtube.com/watch?v=DvuvmzIImYo

        Please let me know if you have any other questions.

        Thanks.

        Thread Starter charlotte83

        (@charlotte83)

        Thank you so much. Have a great day.

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