Hi, this was my code:
<?php
add_filter( 'upload_mimes', 'wpmudev_stl_gcode_add_upload_mime' );
function wpmudev_stl_gcode_add_upload_mime( $mime_types ) {
$mime_types['stl'] = 'application/sla';
$mime_types['gcode'] = 'application/x-gcode';
return $mime_types;
}
I also tried your code. But the fact remains that I still cannot upload an STL file to the form.