• Resolved snifflevalve

    (@snifflevalve)


    Howdy,

    I am planning to use EDD to sell a site using AIOWPM and would like to know what MIME type to use so that the .wpress file can be uploaded to the WP Media library AND that the subsequent download is valid and not corrupt.

    I am using this snippet to allow the upload, but the resulting download shows as corrupt when attempting to import via AIOWPM:

    function my_myme_types($mime_types){
        $mime_types['wpress'] = 'text/html'; //Adding wpress extension
        return $mime_types;
    }
    add_filter('upload_mimes', 'my_myme_types', 1, 1);

    I know that I can ZIP it, but that would mean one more step for the customer to perform and as these are “beginners”, I would like to keep it as simple as possible ??

    Cheers!
    Lyle

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

    (@yaniiliev)

    Hi Lyle,

    The mime-type for wpress is application/octet-stream
    You can check the dot files in ai1wm-backups for examples of how to configure Apache, nginx, and IIS web servers.

    Thread Starter snifflevalve

    (@snifflevalve)

    Hi Yani,

    Worked perfectly! ??

    Thank you so much for all the great work and support that you and your team provide!

    Cheers!
    Lyle

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MIME type for wpress file type’ is closed to new replies.