BuddyDev

Search

[Resolved] BuddyBlog – How to Add Multiple Images to a Post

Tagged: 

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #38130

    Hi Ryan,
    Please share me a sample plotter file and also the name of the plugin you are using to add the mime type. I will test it and will get back to you with more details.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Ryan Zee on #38186

    Thanks, I’m using this one: https://wordpress.org/plugins/file-upload-types/

    You can access some sample files here:

    https://drive.google.com/drive/folders/1Tm308GFc_tK_yBnPKNPzjD0M_eb3F0WU?usp=sharing

    If you need any more info, just let me know.

    Appreciate it!

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #38212

    Hi Ryan,
    Thank you for sharing the issue.

    The problem was the file extension plugin enabled the file type for the upload but did not add it to the list of known mime types.

    so, upload was working but the file was not selectable.

    Please add the following code extra(Keep the file type plugin active).

    
    
    /**
     * Extend list of all mime types with plottr
     */
    add_filter( 'mime_types', function ( $types ) {
    	$types['pltr'] = 'text/plain';
    
    	return $types;
    } );
    

    to your bp-custom.php and try now.

    regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Ryan Zee on #38224

    Thanks!!! I added this to the functions.php of the child theme and this is working beautifully now.

    You have earned a customer / fan for life 🙂

    Ryan

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #38236

    Hi Ryan,
    Thank you for the kind words. I am glad I was able to assist.

    Regards
    Brajesh

The topic ‘ [Resolved] BuddyBlog – How to Add Multiple Images to a Post’ is closed to new replies.

This topic is: resolved