Hello,
I’m trying to allow STL file uploads in a Bricksforge Pro Form, but files are being rejected with the error “Some uploaded files were rejected due to security validation.”
What I’ve tried:
- Added
application/octet-streamto the “Allowed file types” field in the form settings - Used the
bricksforge/pro_forms/allowed_file_typesfilter in functions.php:
add_filter( 'bricksforge/pro_forms/allowed_file_types', function( $allowed_file_types ) {
$allowed_file_types[] = 'application/octet-stream';
return $allowed_file_types;
} );
- Added WordPress MIME type filters:
add_filter( 'upload_mimes', function( $mimes ) {
$mimes['stl'] = 'application/octet-stream';
return $mimes;
} );
Additional information:
- STL files upload successfully to WordPress Media Library (confirmed MIME type:
application/octet-stream) - The form field accepts other file types (PDF, images) without issues
- No cache plugins active, browser cache cleared
When i have this setting, it validates the form, but file is not uploaded to custom folder, but to bricksforge/tmp. When custom path option is not toggled, it throws an error.
Question:
How can I properly configure Pro Forms to accept STL files with MIME type application/octet-stream? Is there an additional security setting or filter I’m missing?
Screenshots attached showing mime type and error message.
Thank you for your help!


